toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final tile = this.tile;
  final tileLayout = this.tileLayout;
  return {
    if (tile != null) 'Tile': tile,
    if (tileLayout != null) 'TileLayout': tileLayout,
  };
}