MapPolygonModel.fromJson constructor

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

Implementation

MapPolygonModel.fromJson(Map<String, dynamic> json) {
  if (json['source'] != null) {
    source = <Source>[];
    json['source'].forEach((v) {
      source!.add(Source.fromJson(v));
    });
  }
  strokeColor = json['strokeColor'];
  fillColor = json['fillColor'];
  strokeWidth = json['strokeWidth'];
}