toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "text": text,
      "cornerPoints": List<dynamic>.from(cornerPoints.map((x) => x.toJson())),
    };