PscInterfaceConfig.fromJson constructor

PscInterfaceConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PscInterfaceConfig.fromJson(Map<String, dynamic> json) {
  return PscInterfaceConfig(
    networkAttachment: json['networkAttachment'] ?? '',
    dnsPeeringConfigs:
        decodeListMessage(
          json['dnsPeeringConfigs'],
          DnsPeeringConfig.fromJson,
        ) ??
        [],
  );
}