Notice.fromJson constructor

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,
      );