PersonName.fromJSON constructor
PersonName.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory PersonName.fromJSON(Map<String, dynamic> data) {
return PersonName(
lastName: (data["lastName"] as String?),
firstNames: (data["firstNames"] as List<dynamic>).map((x0) => (x0 as String) ).toList(),
start: (data["start"] as int?),
end: (data["end"] as int?),
prefix: (data["prefix"] as List<dynamic>).map((x0) => (x0 as String) ).toList(),
suffix: (data["suffix"] as List<dynamic>).map((x0) => (x0 as String) ).toList(),
text: (data["text"] as String?),
use: data["use"] == null ? null : PersonNameUse.fromJSON(data["use"])
);
}