static parse(state) {
      return new print_preview.Margins(
          state[print_preview.ticket_items.CustomMarginsOrientation.TOP] || 0,
          state[print_preview.ticket_items.CustomMarginsOrientation.RIGHT] || 0,
          state[print_preview.ticket_items.CustomMarginsOrientation.BOTTOM] ||
              0,
          state[print_preview.ticket_items.CustomMarginsOrientation.LEFT] || 0);
    }
/**
     * Parses a margins object from the given serialized state.
     * @param {Object} state Serialized representation of the margins created by
     *     the {@code serialize} method.
     * @return {!print_preview.Margins} New margins instance.
     */
Parses a margins object from the given serialized state.
@param {Object} state Serialized representation of the margins created by
the  serialize method.
@return {!print_preview.Margins} New margins instance.
Parses a margins object from the given serialized state . @param { Object } state Serialized representation of the margins created by the serialize method . @return { !print_preview . Margins } New margins instance .
static parse(state) {
      return new print_preview.Margins(
          state[print_preview.ticket_items.CustomMarginsOrientation.TOP] || 0,
          state[print_preview.ticket_items.CustomMarginsOrientation.RIGHT] || 0,
          state[print_preview.ticket_items.CustomMarginsOrientation.BOTTOM] ||
              0,
          state[print_preview.ticket_items.CustomMarginsOrientation.LEFT] || 0);
    }
static parse ( state ) { return new print_preview . Margins ( state [ print_preview . ticket_items . CustomMarginsOrientation . TOP ] || 0 , state [ print_preview . ticket_items . CustomMarginsOrientation . RIGHT ] || 0 , state [ print_preview . ticket_items . CustomMarginsOrientation . BOTTOM ] || 0 , state [ print_preview . ticket_items . CustomMarginsOrientation . LEFT ] || 0 ) ; }
Parses a margins object from the given serialized state.
Parses a margins object from the given serialized state .