toMap method
Map<String, dynamic>
toMap
()
Implementation
Map<String,dynamic> toMap() {
return {
"allow-flight": this.allow_flight,
"allow-nether": this.allow_nether,
"broadcast-console-to-ops": this.broadcast_console_to_ops,
"difficulty": this.difficulty.toString(),
"enable-command-block": this.enable_command_block,
"enable-query": this.enable_query,
"enable-rcon": this.enable_rcon,
"enforce-whitelist": this.enforce_whitelist,
"force-gamemode": this.force_gamemode,
"function-permission-level": this.function_permission_level,
"gamemode": this.gamemode,
"generate-structures": this.generate_structures,
"generator-settings": this.generator_settings,
"hardcore": this.hardcore,
"level-name": this.level_name,
"level-seed": this.level_seed,
"level-type": this.level_type.toString(),
"max-build-height": this.max_build_height,
"max-players": this.max_players,
"max-tick-time": this.max_tick_time,
"max-world-size": this.max_world_size,
"motd": this.motd,
"network-compression-threshold": this.network_compression_threshold,
"online-mode": this.online_mode,
"op-permission-level": this.op_permission_level,
"player-idle-timeout": this.player_idle_timeout,
"prevent-proxy-connections": this.prevent_proxy_connections,
"pvp": this.pvp,
"resource-pack": this.resource_pack,
"resource-pack-sha1": this.resource_pack_sha1,
"server-ip": this.server_ip,
"server-port": this.server_port,
"snooper-enabled": this.snooper_enabled,
"spawn-animals": this.spawn_animals,
"spawn-monsters": this.spawn_monsters,
"spawn-npcs": this.spawn_npcs,
"spawn-protection": this.spawn_protection,
"view-distance": this.view_distance,
"white-list": this.white_list,
};
}