toJson method

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

Implementation

@override
Map<String, Object?> toJson() => {
      if (label != null) "label": label,
      if (description != null) "description": description,
    };