fromJSON static method

RoleConfigurationSource fromJSON(
  1. String data
)

Implementation

static RoleConfigurationSource fromJSON(String data) {
	switch (data) {
		case "CONFIGURATION":
			return RoleConfigurationSource.configuration;
		case "INHERITED":
			return RoleConfigurationSource.inherited;
		case "DEFAULT":
			return RoleConfigurationSource.predefined;
		default:
			throw ArgumentError('Invalid RoleConfigurationSource entry value $data');
		}
}