toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "_elementId": _elementId,
      "text": text,
      "detailText": detailText,
      "onPress": onPress != null ? true : false,
      "image": image,
      "playbackProgress": playbackProgress,
      "isPlaying": isPlaying,
      "playingIndicatorLocation":
          CPEnumUtils.stringFromEnum(playingIndicatorLocation.toString()),
      "accessoryType": CPEnumUtils.stringFromEnum(accessoryType.toString()),
    };