fromJSON static method

HealthcarePartyStatus fromJSON(
  1. String data
)

Implementation

static HealthcarePartyStatus fromJSON(String data) {
	switch (data) {
		case "trainee":
			return HealthcarePartyStatus.trainee;
		case "withconvention":
			return HealthcarePartyStatus.withconvention;
		case "accreditated":
			return HealthcarePartyStatus.accreditated;
		default:
			throw ArgumentError('Invalid HealthcarePartyStatus entry value $data');
		}
}