Tasks.fromJson constructor Null safety

Tasks.fromJson(
  1. Map _json
)

Implementation

Tasks.fromJson(core.Map _json)
    : this(
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        items: _json.containsKey('items')
            ? (_json['items'] as core.List)
                .map((value) => Task.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
      );