Notice.fromJson constructor Null safety

Notice.fromJson(
  1. Map _json
)

Implementation

Notice.fromJson(core.Map _json)
    : this(
        description: _json.containsKey('description')
            ? (_json['description'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        links: _json.containsKey('links')
            ? (_json['links'] as core.List)
                .map((value) => Link.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        title:
            _json.containsKey('title') ? _json['title'] as core.String : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );