toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of CaptionParams.

Implementation

Map<String, dynamic> toJson() {
  return {
    'Text': text,
    'Alignment': alignment,
    'Color': color,
    'Visible': visible,
    'Font': font,
    'Padding': padding,
    'NoWrap': noWrap
  };
}