toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"image": image?.toJson(),
"error": error?.toJson(),
}.clearNulls();
@visibleForTesting
Map<String, dynamic> toJson() => {
"image": image?.toJson(),
"error": error?.toJson(),
}.clearNulls();