Relationship.fromJson constructor

Relationship.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Relationship.fromJson(Map<String, dynamic> json) {
  return Relationship(
    ids: (json['Ids'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    type: (json['Type'] as String?)?.toRelationshipType(),
  );
}