toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'appliesTo': appliesTo,
      if (description != null) 'description': description,
      'label': label,
      'mode': mode,
    };