getJson method

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

Implementation

@override
Map<String, dynamic> getJson() {
  var ret = <String, dynamic>{
    'condition': 'minecraft:time_check',
  };
  if (value != null) ret['value'] = value!.getJson();
  if (period != null) ret['period'] = period;
  return ret;
}