fromJSON static method

StateToUpdate fromJSON(
  1. String data
)

Implementation

static StateToUpdate fromJSON(String data) {
	switch (data) {
		case "VALUE":
			return StateToUpdate.value;
		case "VISIBLE":
			return StateToUpdate.visible;
		case "READONLY":
			return StateToUpdate.readonly;
		case "CLAZZ":
			return StateToUpdate.clazz;
		case "REQUIRED":
			return StateToUpdate.required;
		default:
			throw ArgumentError('Invalid StateToUpdate entry value $data');
		}
}