ServingConfig.fromJson constructor
ServingConfig.fromJson(
- Map json_
Implementation
ServingConfig.fromJson(core.Map json_)
: this(
appAssociation: json_.containsKey('appAssociation')
? json_['appAssociation'] as core.String
: null,
cleanUrls: json_.containsKey('cleanUrls')
? json_['cleanUrls'] as core.bool
: null,
headers: json_.containsKey('headers')
? (json_['headers'] as core.List)
.map((value) => Header.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
i18n: json_.containsKey('i18n')
? I18nConfig.fromJson(
json_['i18n'] as core.Map<core.String, core.dynamic>)
: null,
redirects: json_.containsKey('redirects')
? (json_['redirects'] as core.List)
.map((value) => Redirect.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
rewrites: json_.containsKey('rewrites')
? (json_['rewrites'] as core.List)
.map((value) => Rewrite.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
trailingSlashBehavior: json_.containsKey('trailingSlashBehavior')
? json_['trailingSlashBehavior'] as core.String
: null,
);