toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'title': title,
    'status': status,
    'type': type,
    'progress': progress,
    'thumbnailPath': thumbnailPath,
    'mediaId': mediaId,
    'tags': tags,
    'metadata': metadata,
    'includeInReport': includeInReport,
    'isLibrary': isLibrary,
    'isStartOperationCompleted': isStartOperationCompleted,
    'startOperationStartedAt': startOperationStartedAt,
    'startOperationEndedAt': startOperationEndedAt,
    'isCompleteOperationCompleted': isCompleteOperationCompleted,
    'completeOperationStartedAt': completeOperationStartedAt,
    'completeOperationEndedAt': completeOperationEndedAt,
    'parts': parts?.map((p) => p.toJson()).toList(),
    'createdAt': createdAt,
    'updatedAt': updatedAt,
    'startedAt': startedAt,
    'endedAt': endedAt,
  };
}