PaymentLinkUpdateOptionsPaymentIntentData.fromJson constructor
PaymentLinkUpdateOptionsPaymentIntentData.fromJson(
- Object? json
Implementation
factory PaymentLinkUpdateOptionsPaymentIntentData.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentLinkUpdateOptionsPaymentIntentData(
description:
map['description'] == null ? null : (map['description'] as String),
metadata: map['metadata'] == null
? null
: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
statementDescriptor: map['statement_descriptor'] == null
? null
: (map['statement_descriptor'] as String),
statementDescriptorSuffix: map['statement_descriptor_suffix'] == null
? null
: (map['statement_descriptor_suffix'] as String),
transferGroup: map['transfer_group'] == null
? null
: (map['transfer_group'] as String),
);
}