Grid.fromMap constructor

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

Serialization

Implementation

factory Grid.fromMap(Map<String, dynamic> map) {
  return Grid._(
    map["matrix"] == null
        ? null
        : List<List<Cell>>.from(map["matrix"]
            .map((x) => List<Cell>.from(x.map((x) => Cell.fromMap(x))))),
  );
}