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