toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'createdAt': createdAt,
    'filePath': filePath,
    'type': type.toString().split('.').last,
    'cameraLensFacing': cameraLensFacing.toString().split('.').last,
    'rotation': rotation.toString().split('.').last,
    'resolution': resolution.toJson(),
    'duration': duration,
  };
}