PersonsRelationship.fromJson constructor

PersonsRelationship.fromJson(
  1. Object? json
)

Implementation

factory PersonsRelationship.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PersonsRelationship(
    director: map['director'] == null ? null : (map['director'] as bool),
    executive: map['executive'] == null ? null : (map['executive'] as bool),
    legalGuardian: map['legal_guardian'] == null
        ? null
        : (map['legal_guardian'] as bool),
    owner: map['owner'] == null ? null : (map['owner'] as bool),
    representative: map['representative'] == null
        ? null
        : (map['representative'] as bool),
  );
}