toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['title'] = _title;
  map['description'] = _description;
  map['created_at'] = _createdAt;
  map['created_time'] = _createdTime;
  map['updated_at'] = _updatedAt;
  map['updated_time'] = _updatedTime;
  map['is_active'] = _isActive;
  map['master_user_id'] = _masterUserId;
  if (_videosLink != null) {
    map['videos_link'] = _videosLink?.map((v) => v.toJson()).toList();
  }
  if (_files != null) {
    map['files'] = _files?.map((v) => v.toJson()).toList();
  }
  map['isSelected'] = _isSelected;
  return map;
}