ExtensionChain.fromJson constructor

ExtensionChain.fromJson(
  1. Map json_
)

Implementation

ExtensionChain.fromJson(core.Map json_)
    : this(
        extensions: json_.containsKey('extensions')
            ? (json_['extensions'] as core.List)
                .map((value) => ExtensionChainExtension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        matchCondition: json_.containsKey('matchCondition')
            ? ExtensionChainMatchCondition.fromJson(json_['matchCondition']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );