CroppingPolygon.fromJson constructor

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

Implementation

factory CroppingPolygon.fromJson(Map<String, dynamic> json) {
  return CroppingPolygon(
    ImageRotation.values[json["imageRotation"] as int],
    (json["polygon"] as List)
        .map((e) => PolygonPoint.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}