toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"attributes": attributes?.map((e) => e.value).toList(),
"customQuality": customQuality?.map((e) => e.toJson()).toList(),
"outputImageParams": outputImageParams?.toJson(),
"onlyCentralFace": onlyCentralFace,
}.clearNulls();