Line.fromJson constructor

Line.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Line.fromJson(Map<String, dynamic> json) {
  text = json['text'];
  if (json['cornerPoints'] != null) {
    cornerList = [];
    json['cornerPoints'].forEach((v) {
      cornerList!.add(CornerPoint.fromJson(v));
    });
  }
}