encode<V> static method

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

Implementation

static V encode<V>(
  IssuingAuthorizationNetworkData instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.acquiringInstitutionId != null) {
    container.encodeString(
      'acquiring_institution_id',
      instance.acquiringInstitutionId!,
    );
  }
  if (instance.systemTraceAuditNumber != null) {
    container.encodeString(
      'system_trace_audit_number',
      instance.systemTraceAuditNumber!,
    );
  }
  if (instance.transactionId != null) {
    container.encodeString(
      'transaction_id',
      instance.transactionId!,
    );
  }
  return container.value;
}