toJson method

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

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "images": images.map((e) => e.toJson()),
      "detection": detection?.toJson(),
      "name": name,
      "updatedAt": updatedAt.toString(),
      "groups": groups,
      "id": id,
      "metadata": metadata,
      "createdAt": createdAt.toString(),
    }.clearNulls();