toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};

  result["featureType"] = featureType;
  result["result"] = this.result.value;
  result["type"] = type.value;
  if (boundRects != null) {
    List<dynamic> list = [];
    for (var item in boundRects!) list.add(item.toJson());
    result["boundRects"] = list;
  } else
    result["boundRects"] = null;

  return result;
}