toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'name': name,
      'action': action,
      'bandwith': bandwith,
      'duration': duration,
      'position': position,
      'soundIsMuted': soundIsMuted,
      'soundVolume': soundVolume,
      'customCategories': customCategories
          ?.map((key, value) => MapEntry(key.toString(), value))
    };