toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'id': id,
    'type': type.toString(),
    'value': value,
    'containerColor': containerColor.value,
    'textStyle': textStyle.toJson(),
    'textAlign': '${textAlign.index}',
    'position': position.toJson(),
    'scale': scale,
    'rotation': rotation,
    'customWidgetId': customWidgetId,
    'isVideoMuted': isVideoMuted,
    'layerIndex': layerIndex,
  };
}