toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (downloadUrl != null) 'downloadUrl': downloadUrl!,
      if (endTime != null) 'endTime': endTime!,
      if (id != null) 'id': id!,
      if (jobExpireTime != null) 'jobExpireTime': jobExpireTime!,
      if (jobId != null) 'jobId': jobId!,
      if (startTime != null) 'startTime': startTime!,
    };