TaxIDsOwner.fromJson constructor

TaxIDsOwner.fromJson(
  1. Object? json
)

Implementation

factory TaxIDsOwner.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TaxIDsOwner(
    account:
        map['account'] == null ? null : AccountOrId.fromJson(map['account']),
    application: map['application'] == null
        ? null
        : ApplicationOrId.fromJson(map['application']),
    customer: map['customer'] == null
        ? null
        : CustomerOrId.fromJson(map['customer']),
    type: TaxIDsOwnerType.fromJson(map['type']),
  );
}