Relationship.fromJson constructor

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

Implementation

factory Relationship.fromJson(Map<String, Object?> json) => Relationship(
      id: json["id"] as String,
      kind: RelationshipKind.fromJson(json["kind"]),
      parent: RelationshipParent.fromJson(
        (json["parent"] as Map).cast<String, Object?>(),
      ),
      status: RelationshipStatus.fromJson(json["status"]),
      createdAt: decodeDateTime(json["created_at"]),
    );