toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

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