WangTile.fromJson constructor

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

Implementation

WangTile.fromJson(Map<String, dynamic> json) {
  tileId = json['tileid'];
  if (json['wangid'] != null) {
    wangId = <int>[];
    json['wangid'].forEach((v) {
      wangId?.add(v);
    });
  }
}