factory NetworkConfiguration.fromJson(Map<String, dynamic> json) { return NetworkConfiguration( assignPublicIp: (json['assignPublicIp'] as String?)?.toAssignPublicIp(), ); }