toJson method

Map<String, dynamic> toJson()

Implementation

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