fromJSON static method

Laterality fromJSON(
  1. String data
)

Implementation

static Laterality fromJSON(String data) {
	switch (data) {
		case "left":
			return Laterality.left;
		case "right":
			return Laterality.right;
		default:
			throw ArgumentError('Invalid Laterality entry value $data');
		}
}