fromJSON static method

AccessLevel fromJSON(
  1. String data
)

Implementation

static AccessLevel fromJSON(String data) {
	switch (data) {
		case "READ":
			return AccessLevel.read;
		case "WRITE":
			return AccessLevel.write;
		default:
			throw ArgumentError('Invalid AccessLevel entry value $data');
		}
}