Generates a json from current model
Map<String, dynamic> toJson() => <String, dynamic>{ 'name': name, 'type': type, 'value': value, };