AccountRelationship.fromJson constructor
AccountRelationship.fromJson(
- Object? json
Implementation
factory AccountRelationship.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountRelationship(
director: map['director'] == null ? null : (map['director'] as bool),
executive: map['executive'] == null ? null : (map['executive'] as bool),
owner: map['owner'] == null ? null : (map['owner'] as bool),
percentOwnership: map['percent_ownership'] == null
? null
: (map['percent_ownership'] as num).toDouble(),
title: map['title'] == null ? null : (map['title'] as String),
);
}