Report.fromJson constructor Null safety

Report.fromJson(
  1. Map _json
)

Implementation

Report.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        downloadUrl: _json.containsKey('downloadUrl')
            ? _json['downloadUrl'] as core.String
            : null,
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        jobExpireTime: _json.containsKey('jobExpireTime')
            ? _json['jobExpireTime'] as core.String
            : null,
        jobId:
            _json.containsKey('jobId') ? _json['jobId'] as core.String : null,
        startTime: _json.containsKey('startTime')
            ? _json['startTime'] as core.String
            : null,
      );