toJson method

  1. @override
Map<String, dynamic> toJson()
override

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;
}