LandingPage.fromJson constructor

LandingPage.fromJson(
  1. Map json_
)

Implementation

LandingPage.fromJson(core.Map json_)
    : this(
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        archived: json_.containsKey('archived')
            ? json_['archived'] as core.bool
            : null,
        deepLinks: json_.containsKey('deepLinks')
            ? (json_['deepLinks'] as core.List)
                .map((value) => DeepLink.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );