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