Job.fromJson constructor Null safety

Job.fromJson(
  1. Map _json
)

Implementation

Job.fromJson(core.Map _json)
    : this(
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        expireTime: _json.containsKey('expireTime')
            ? _json['expireTime'] as core.String
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        reportTypeId: _json.containsKey('reportTypeId')
            ? _json['reportTypeId'] as core.String
            : null,
        systemManaged: _json.containsKey('systemManaged')
            ? _json['systemManaged'] as core.bool
            : null,
      );