EgressFrom.fromJson constructor

EgressFrom.fromJson(
  1. Map json_
)

Implementation

EgressFrom.fromJson(core.Map json_)
    : this(
        identities: json_.containsKey('identities')
            ? (json_['identities'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        identityType: json_.containsKey('identityType')
            ? json_['identityType'] as core.String
            : null,
        sourceRestriction: json_.containsKey('sourceRestriction')
            ? json_['sourceRestriction'] as core.String
            : null,
        sources: json_.containsKey('sources')
            ? (json_['sources'] as core.List)
                .map((value) => EgressSource.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );