toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final json = <String, dynamic>{'type': 'boolean'};
if (title != null) json['title'] = title;
if (description != null) json['description'] = description;
if (defaultValue != null) json['default'] = defaultValue;
return json;
}