ExternalAccountRequirements.fromJson constructor
ExternalAccountRequirements.fromJson(
- Object? json
Implementation
factory ExternalAccountRequirements.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return ExternalAccountRequirements(
currentlyDue: map['currently_due'] == null
? null
: (map['currently_due'] as List<Object?>)
.map((el) => (el as String))
.toList(),
errors: map['errors'] == null
? null
: (map['errors'] as List<Object?>)
.map((el) => AccountRequirementsError.fromJson(el))
.toList(),
pastDue: map['past_due'] == null
? null
: (map['past_due'] as List<Object?>)
.map((el) => (el as String))
.toList(),
pendingVerification: map['pending_verification'] == null
? null
: (map['pending_verification'] as List<Object?>)
.map((el) => (el as String))
.toList(),
);
}