Relationship.fromJson constructor
Implementation
factory Relationship.fromJson(Map<String, Object?> json) => Relationship(
id: json["id"] as String,
kind: RelationshipKind.fromJson(json["kind"]),
policyVersion: json["policy_version"] as String,
status: RelationshipStatus.fromJson(json["status"]),
actorAppId: json["actor_app_id"] as String,
creatorAppId: json["creator_app_id"] as String,
placementParentAppId: json["placement_parent_app_id"] as String,
subjectAppId: json["subject_app_id"] as String,
childAppId: json["child_app_id"] as String,
childStanding: json["child_standing"] as String,
relationshipPolicy: RelationshipPolicy.fromJson(
(json["relationship_policy"] as Map).cast<String, Object?>(),
),
retainedCreatorAuthorityExists:
json["retained_creator_authority_exists"] as bool,
createdAt: decodeDateTime(json["created_at"]),
);