decode static method
Implementation
static EventPropertyType? decode(dynamic json) {
if (json == null) {
return null;
}
if (json is! String) {
return null;
}
switch (json) {
case 'INTEGER':
return EventPropertyType.INTEGER;
case 'FLOAT':
return EventPropertyType.FLOAT;
case 'STRING':
return EventPropertyType.STRING;
case 'BOOLEAN':
return EventPropertyType.BOOLEAN;
case 'TIMESTAMP':
return EventPropertyType.TIMESTAMP;
default:
return EventPropertyType.UNKNOWN;
}
}