ApplicationSettings.fromJSON constructor
ApplicationSettings.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory ApplicationSettings.fromJSON(Map<String, dynamic> data) {
return ApplicationSettings(
(data["id"] as String),
rev: (data["rev"] as String?),
created: (data["created"] as int?),
modified: (data["modified"] as int?),
author: (data["author"] as String?),
responsible: (data["responsible"] as String?),
medicalLocationId: (data["medicalLocationId"] as String?),
tags: (data["tags"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toSet(),
codes: (data["codes"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toSet(),
endOfLife: (data["endOfLife"] as int?),
deletionDate: (data["deletionDate"] as int?),
settings: (data["settings"] as Map<String, dynamic>).map((k0, v0) => MapEntry((k0 as String), (v0 as String))),
);
}