toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"images": images.map((e) => e.toJson()).toList(),
"outputImageParams": outputImageParams?.toJson(),
"tag": tag,
"metadata": metadata,
}.clearNulls();