SpritefusionMapLayerTile.fromMap constructor

SpritefusionMapLayerTile.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SpritefusionMapLayerTile.fromMap(Map<String, dynamic> map) {
  return SpritefusionMapLayerTile(
    id: map['id'] as String,
    x: int.parse(map['x'].toString()),
    y: int.parse(map['y'].toString()),
  );
}