InstanceAccessDetails.fromJson constructor
InstanceAccessDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InstanceAccessDetails.fromJson(Map<String, dynamic> json) {
return InstanceAccessDetails(
certKey: json['certKey'] as String?,
expiresAt: timeStampFromJson(json['expiresAt']),
hostKeys: (json['hostKeys'] as List?)
?.whereNotNull()
.map((e) => HostKeyAttributes.fromJson(e as Map<String, dynamic>))
.toList(),
instanceName: json['instanceName'] as String?,
ipAddress: json['ipAddress'] as String?,
password: json['password'] as String?,
passwordData: json['passwordData'] != null
? PasswordData.fromJson(json['passwordData'] as Map<String, dynamic>)
: null,
privateKey: json['privateKey'] as String?,
protocol: (json['protocol'] as String?)?.toInstanceAccessProtocol(),
username: json['username'] as String?,
);
}