toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'channel': channel,
      'feature': feature,
      if (tags != null && tags!.isNotEmpty) 'tags': tags,
    };