fromJSON static method

UsersStatus fromJSON(
  1. String data
)

Implementation

static UsersStatus fromJSON(String data) {
	switch (data) {
		case "ACTIVE":
			return UsersStatus.active;
		case "DISABLED":
			return UsersStatus.disabled;
		case "REGISTERING":
			return UsersStatus.registering;
		default:
			throw ArgumentError('Invalid UsersStatus entry value $data');
		}
}