toJson method
Returns a JSON representation of this entity.
Implementation
@override
Map<String, Object> toJson() {
Map<String, Object> result = {};
result['declaration'] = 'enum_field';
result['name'] = getName();
result['value'] = getValue();
result['type'] = getType().toString();
return result;
}