encode<V> static method

V encode<V>(
  1. IssuingTransactionNetworkData instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  IssuingTransactionNetworkData instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.authorizationCode != null) {
    container.encodeString(
      'authorization_code',
      instance.authorizationCode!,
    );
  }
  if (instance.processingDate != null) {
    container.encodeString(
      'processing_date',
      instance.processingDate!,
    );
  }
  if (instance.transactionId != null) {
    container.encodeString(
      'transaction_id',
      instance.transactionId!,
    );
  }
  return container.value;
}