toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'name'] = name;
  if (description != null) {
    json[r'description'] = description;
  }
  return json;
}