NetworkPolicy.fromJson constructor

NetworkPolicy.fromJson(
  1. Map json_
)

Implementation

NetworkPolicy.fromJson(core.Map json_)
    : this(
        networkInterfaces: json_.containsKey('networkInterfaces')
            ? (json_['networkInterfaces'] as core.List)
                .map((value) => NetworkInterface.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );