toJson method
The JSON form, with schemaVersion first. The poster keys appear only when a poster is present, so a no-poster manifest is byte-identical to a pre-poster one.
Implementation
Map<String, Object?> toJson() => {
'schemaVersion': schemaVersion,
'width': width,
'height': height,
'fps': fps,
'frameCount': frameCount,
'framesFileName': framesFileName,
'outputFileName': outputFileName,
'renderDigest': renderDigest,
'ffmpegArgs': ffmpegArgs,
if (posterArgs != null) 'posterArgs': posterArgs,
if (posterFileName != null) 'posterFileName': posterFileName,
};