fromJSON static method

Implementation

static ShareAllPatientDataOptionsShareableEntity fromJSON(String data) {
	switch (data) {
		case "CalendarItem":
			return ShareAllPatientDataOptionsShareableEntity.calendarItem;
		case "Contact":
			return ShareAllPatientDataOptionsShareableEntity.contact;
		case "Classification":
			return ShareAllPatientDataOptionsShareableEntity.classification;
		case "Document":
			return ShareAllPatientDataOptionsShareableEntity.document;
		case "Form":
			return ShareAllPatientDataOptionsShareableEntity.form;
		case "HealthElement":
			return ShareAllPatientDataOptionsShareableEntity.healthElement;
		case "Invoice":
			return ShareAllPatientDataOptionsShareableEntity.invoice;
		case "Patient":
			return ShareAllPatientDataOptionsShareableEntity.patient;
		default:
			throw ArgumentError('Invalid ShareAllPatientDataOptionsShareableEntity entry value $data');
		}
}