toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  int newTextColor = ColorUtils().colorToDecimal(textColor);
  return {
    "backgroundPictureMd5": backgroundPictureMd5,
    "compressionType": compressionType,
    "height": height,
    "textColor": newTextColor,
    "thumHeight": thumHeight,
    "thumWidth": thumWidth,
    "timeBottomContent": timeBottomContent,
    "timePosition": timePosition,
    "timeTopContent": timeTopContent,
    "width": width,
  };
}