toJson method

Map<String, dynamic> toJson()

Implementation

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