Relationship.fromJson constructor

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

Implementation

Relationship.fromJson(Map<String, dynamic> json) {
  clientRoleRelId = json['client_role_rel_id'];
  permission = json['permission'];
  createdDateTime = json['created_date_time'];
  createdById = json['created_by_id'];

  GetClientResponse getClientResponse = GetClientResponse.fromJson({
    "Client": [json['client']]
  });
  client = getClientResponse.client;
  GetRoleResponse getRoleResponse = GetRoleResponse.fromJson({
    "Role": [json['role']]
  });
  role = getRoleResponse.role;
}