toJson method

Map<String, dynamic> toJson()

Implementation

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