toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'type': side.toJson(),
      'id': id,
      if (videoId != null) 'videoId': videoId,
    };