toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (caption != null) 'caption': caption!,
      if (video != null) 'video': video!,
    };