getJson method

  1. @override
Map<String, dynamic> getJson()
override

Implementation

@override
Map<String, dynamic> getJson() {
  var ret = <String, dynamic>{
    'condition': 'minecraft:weather_check',
  };
  if (raining != null) ret['raining'] = raining;
  if (thundering != null) ret['thundering'] = thundering;
  return ret;
}