EncounterConditionValue.fromJson constructor

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

Implementation

EncounterConditionValue.fromJson(Map<String, dynamic> json) {
  condition = json['condition'] != null
      ?  NamedAPIResource.fromJson(json['condition'])
      : null;
  if (json['names'] != null) {
    names =  <EncounterConditionValueName>[];
    (json['names'] as List).forEach((v) {
      names!.add( EncounterConditionValueName.fromJson(v));
    });
  }
  name = json['name'];
  id = json['id'];
}