encode static method

Map<String, dynamic> encode(
  1. PersonName value
)

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;
}