NetworkProfile.fromJson constructor

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

Implementation

factory NetworkProfile.fromJson(Map<String, dynamic> json) {
  return NetworkProfile(
    certificateAuthorityArn: json['CertificateAuthorityArn'] as String?,
    currentPassword: json['CurrentPassword'] as String?,
    description: json['Description'] as String?,
    eapMethod: (json['EapMethod'] as String?)?.toNetworkEapMethod(),
    networkProfileArn: json['NetworkProfileArn'] as String?,
    networkProfileName: json['NetworkProfileName'] as String?,
    nextPassword: json['NextPassword'] as String?,
    securityType: (json['SecurityType'] as String?)?.toNetworkSecurityType(),
    ssid: json['Ssid'] as String?,
    trustAnchors: (json['TrustAnchors'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}