FinancialConnectionsAccountOwner.fromJson constructor
FinancialConnectionsAccountOwner.fromJson(
- Object? json
Implementation
factory FinancialConnectionsAccountOwner.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return FinancialConnectionsAccountOwner(
email: map['email'] == null ? null : (map['email'] as String),
id: (map['id'] as String),
name: (map['name'] as String),
ownership: (map['ownership'] as String),
phone: map['phone'] == null ? null : (map['phone'] as String),
rawAddress:
map['raw_address'] == null ? null : (map['raw_address'] as String),
refreshedAt: map['refreshed_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['refreshed_at'] as int).toInt()),
);
}