ProxyConfiguration.fromJson constructor

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

Implementation

factory ProxyConfiguration.fromJson(Map<String, dynamic> json) {
  return ProxyConfiguration(
    containerName: json['containerName'] as String,
    properties: (json['properties'] as List?)
        ?.whereNotNull()
        .map((e) => KeyValuePair.fromJson(e as Map<String, dynamic>))
        .toList(),
    type: (json['type'] as String?)?.toProxyConfigurationType(),
  );
}