Control.fromJson constructor

Control.fromJson(
  1. Map json_
)

Implementation

Control.fromJson(core.Map json_)
    : this(
        environment: json_.containsKey('environment')
            ? json_['environment'] as core.String
            : null,
        methodPolicies: json_.containsKey('methodPolicies')
            ? (json_['methodPolicies'] as core.List)
                .map((value) => MethodPolicy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );