TrackedEntityInstanceRelationship.fromJson constructor
TrackedEntityInstanceRelationship.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TrackedEntityInstanceRelationship.fromJson(
Map<String, dynamic> json) {
return TrackedEntityInstanceRelationship(
id: json['id'],
fromTrackedInstance: json['fromTrackedInstance'] ??
json['from']?['trackedEntityInstance']?['trackedEntityInstance'],
toTrackedInstance: json['toTrackedInstance'] ??
json['to']?['trackedEntityInstance']?['trackedEntityInstance'],
relationshipType: json['relationshipType'],
created: json['created'],
lastUpdated: json['lastUpdated'],
dirty: json['dirty']);
}