Message.fromJson constructor
Message.fromJson(
- Map json_
Implementation
Message.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
data: json_.containsKey('data') ? json_['data'] as core.String : null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
messageType: json_.containsKey('messageType')
? json_['messageType'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
parsedData: json_.containsKey('parsedData')
? ParsedData.fromJson(
json_['parsedData'] as core.Map<core.String, core.dynamic>)
: null,
patientIds: json_.containsKey('patientIds')
? (json_['patientIds'] as core.List)
.map((value) => PatientId.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
schematizedData: json_.containsKey('schematizedData')
? SchematizedData.fromJson(json_['schematizedData']
as core.Map<core.String, core.dynamic>)
: null,
sendFacility: json_.containsKey('sendFacility')
? json_['sendFacility'] as core.String
: null,
sendTime: json_.containsKey('sendTime')
? json_['sendTime'] as core.String
: null,
);