TaxIdVerification.fromJson constructor

TaxIdVerification.fromJson(
  1. Object? json
)

Implementation

factory TaxIdVerification.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TaxIdVerification(
    status: TaxIdVerificationStatus.fromJson(map['status']),
    verifiedAddress: map['verified_address'] == null
        ? null
        : (map['verified_address'] as String),
    verifiedName: map['verified_name'] == null
        ? null
        : (map['verified_name'] as String),
  );
}