toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final durationMillis = this.durationMillis;
  final fileSize = this.fileSize;
  final frameRate = this.frameRate;
  final height = this.height;
  final width = this.width;
  return {
    if (durationMillis != null) 'DurationMillis': durationMillis,
    if (fileSize != null) 'FileSize': fileSize,
    if (frameRate != null) 'FrameRate': frameRate,
    if (height != null) 'Height': height,
    if (width != null) 'Width': width,
  };
}