JobOutput.fromJson constructor
JobOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory JobOutput.fromJson(Map<String, dynamic> json) {
return JobOutput(
albumArt: json['AlbumArt'] != null
? JobAlbumArt.fromJson(json['AlbumArt'] as Map<String, dynamic>)
: null,
appliedColorSpaceConversion:
json['AppliedColorSpaceConversion'] as String?,
captions: json['Captions'] != null
? Captions.fromJson(json['Captions'] as Map<String, dynamic>)
: null,
composition: (json['Composition'] as List?)
?.whereNotNull()
.map((e) => Clip.fromJson(e as Map<String, dynamic>))
.toList(),
duration: json['Duration'] as int?,
durationMillis: json['DurationMillis'] as int?,
encryption: json['Encryption'] != null
? Encryption.fromJson(json['Encryption'] as Map<String, dynamic>)
: null,
fileSize: json['FileSize'] as int?,
frameRate: json['FrameRate'] as String?,
height: json['Height'] as int?,
id: json['Id'] as String?,
key: json['Key'] as String?,
presetId: json['PresetId'] as String?,
rotate: json['Rotate'] as String?,
segmentDuration: json['SegmentDuration'] as String?,
status: json['Status'] as String?,
statusDetail: json['StatusDetail'] as String?,
thumbnailEncryption: json['ThumbnailEncryption'] != null
? Encryption.fromJson(
json['ThumbnailEncryption'] as Map<String, dynamic>)
: null,
thumbnailPattern: json['ThumbnailPattern'] as String?,
watermarks: (json['Watermarks'] as List?)
?.whereNotNull()
.map((e) => JobWatermark.fromJson(e as Map<String, dynamic>))
.toList(),
width: json['Width'] as int?,
);
}