Relationship.fromJson constructor

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

Implementation

factory Relationship.fromJson(Map<String, dynamic> json) {
  return Relationship(
    relationshipName: json['relationshipName'] as String?,
    resourceId: json['resourceId'] as String?,
    resourceName: json['resourceName'] as String?,
    resourceType: (json['resourceType'] as String?)?.toResourceType(),
  );
}