toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (imagePayload != null) 'imagePayload': imagePayload!.toJson(),
if (name != null) 'name': name!,
if (textPayload != null) 'textPayload': textPayload!.toJson(),
if (videoPayload != null) 'videoPayload': videoPayload!.toJson(),
};