EncounterMethod.fromJson constructor

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

Implementation

EncounterMethod.fromJson(Map<String, dynamic> json) {
  if (json['names'] != null) {
    names = new List<EncounterMethodName>();
    (json['names'] as List).forEach((v) {
      names.add(new EncounterMethodName.fromJson(v));
    });
  }
  name = json['name'];
  id = json['id'];
  order = json['order'];
}