fromJSON static method

PersonNameUse fromJSON(
  1. String data
)

Implementation

static PersonNameUse fromJSON(String data) {
	switch (data) {
		case "usual":
			return PersonNameUse.usual;
		case "official":
			return PersonNameUse.official;
		case "temp":
			return PersonNameUse.temp;
		case "nickname":
			return PersonNameUse.nickname;
		case "anonymous":
			return PersonNameUse.anonymous;
		case "maiden":
			return PersonNameUse.maiden;
		case "old":
			return PersonNameUse.old;
		case "other":
			return PersonNameUse.other;
		default:
			throw ArgumentError('Invalid PersonNameUse entry value $data');
		}
}