encode<V> static method

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

Implementation

static V encode<V>(
  IssuingNetworkTokenVisa instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'card_reference_id',
    instance.cardReferenceId,
  );
  container.encodeString(
    'token_reference_id',
    instance.tokenReferenceId,
  );
  container.encodeString(
    'token_requestor_id',
    instance.tokenRequestorId,
  );
  if (instance.tokenRiskScore != null) {
    container.encodeString(
      'token_risk_score',
      instance.tokenRiskScore!,
    );
  }
  return container.value;
}