ProgramRelationship.fromJson constructor

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

Implementation

factory ProgramRelationship.fromJson(Map<String, dynamic> json) {
  return ProgramRelationship(
      id: json['id'],
      name: json['name'],
      displayName: json['displayName'],
      fromProgram: json['fromProgram'] ?? json['fromConstraint']['program']['id'],
      toProgram: json['toProgram'] ?? json['toConstraint']['program']['id'],
      dirty: json['dirty']);
}