toJson method

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

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();