toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "rect": rect?.toJson(),
      "code": code,
      "probability": probability,
    }.clearNulls();