SourceOwner.fromJson constructor
SourceOwner.fromJson(
- Object? json
Implementation
factory SourceOwner.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SourceOwner(
address: map['address'] == null ? null : Address.fromJson(map['address']),
email: map['email'] == null ? null : (map['email'] as String),
name: map['name'] == null ? null : (map['name'] as String),
phone: map['phone'] == null ? null : (map['phone'] as String),
verifiedAddress: map['verified_address'] == null
? null
: Address.fromJson(map['verified_address']),
verifiedEmail: map['verified_email'] == null
? null
: (map['verified_email'] as String),
verifiedName: map['verified_name'] == null
? null
: (map['verified_name'] as String),
verifiedPhone: map['verified_phone'] == null
? null
: (map['verified_phone'] as String),
);
}