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