toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "featureType": featureType,
      "result": result.value,
      "type": type.value,
      "boundRects": boundRects.map((e) => e.toJson()).toList(),
    }.clearNulls();