serialize method
Serializes information the current object
writer Serialization writer to use to serialize this model
Implementation
@override
void serialize(SerializationWriter writer) {
writer.writeStringValue('brand', brand);
writer.writeObjectValue<PaymentMethodCardChecks>('checks', checks);
writer.writeStringValue('country', country);
writer.writeStringValue('display_brand', displayBrand);
writer.writeIntValue('exp_month', expMonth);
writer.writeIntValue('exp_year', expYear);
writer.writeStringValue('fingerprint', fingerprint);
writer.writeStringValue('funding', funding);
writer.writeObjectValue<PaymentMethodCardGeneratedCard>(
'generated_from', generatedFrom);
writer.writeStringValue('last4', last4);
writer.writeObjectValue<Networks>('networks', networks);
writer.writeEnumValue<PaymentMethodCardRegulatedStatus>(
'regulated_status', regulatedStatus, (e) => e?.value);
writer.writeObjectValue<ThreeDSecureUsage>(
'three_d_secure_usage', threeDSecureUsage);
writer.writeObjectValue<PaymentMethodCardWallet>('wallet', wallet);
writer.writeAdditionalData(additionalData);
}