encode static method
Implementation
static Map<String, dynamic> encode(PersonName value) {
Map<String, dynamic> entityAsMap = {
"lastName" : value.lastName,
"firstNames" : value.firstNames.map((x0) => x0).toList(),
"start" : value.start,
"end" : value.end,
"prefix" : value.prefix.map((x0) => x0).toList(),
"suffix" : value.suffix.map((x0) => x0).toList(),
"text" : value.text,
"use" : value.use == null ? null : PersonNameUse.encode(value.use!)
};
return entityAsMap;
}