WmxSitemap.fromJson constructor

WmxSitemap.fromJson(
  1. Map json_
)

Implementation

WmxSitemap.fromJson(core.Map json_)
    : this(
        contents: json_.containsKey('contents')
            ? (json_['contents'] as core.List)
                .map((value) => WmxSitemapContent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        errors: json_.containsKey('errors')
            ? json_['errors'] as core.String
            : null,
        isPending: json_.containsKey('isPending')
            ? json_['isPending'] as core.bool
            : null,
        isSitemapsIndex: json_.containsKey('isSitemapsIndex')
            ? json_['isSitemapsIndex'] as core.bool
            : null,
        lastDownloaded: json_.containsKey('lastDownloaded')
            ? json_['lastDownloaded'] as core.String
            : null,
        lastSubmitted: json_.containsKey('lastSubmitted')
            ? json_['lastSubmitted'] as core.String
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        warnings: json_.containsKey('warnings')
            ? json_['warnings'] as core.String
            : null,
      );