TaxId.fromJson constructor
TaxId.fromJson(
- Object? json
Implementation
factory TaxId.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TaxId(
country: map['country'] == null ? null : (map['country'] as String),
created:
DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
customer: map['customer'] == null
? null
: CustomerOrId.fromJson(map['customer']),
id: (map['id'] as String),
livemode: (map['livemode'] as bool),
owner: map['owner'] == null ? null : TaxIDsOwner.fromJson(map['owner']),
type: InvoicesResourceInvoiceTaxIdType.fromJson(map['type']),
value: (map['value'] as String),
verification: map['verification'] == null
? null
: TaxIdVerification.fromJson(map['verification']),
);
}