toJson method

Json toJson()

Implementation

Json toJson() => {
  'type': type,
  ...fieldsJson,
  if (!enabled) 'enabled': false,
  if (nonBlocking) 'nonBlocking': true,
  if (when != null) 'when': when!.toJson(),
};