toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
'appEngineHttpRequest': ?appEngineHttpRequest?.toJson(),
'httpRequest': ?httpRequest?.toJson(),
'scheduleTime': ?scheduleTime?.toJson(),
'createTime': ?createTime?.toJson(),
'dispatchDeadline': ?dispatchDeadline?.toJson(),
if (dispatchCount.isNotDefault) 'dispatchCount': dispatchCount,
if (responseCount.isNotDefault) 'responseCount': responseCount,
'firstAttempt': ?firstAttempt?.toJson(),
'lastAttempt': ?lastAttempt?.toJson(),
if (view.isNotDefault) 'view': view.toJson(),
};