Server.fromJson constructor
Implementation
factory Server.fromJson(Map<String, dynamic> json) {
return Server(
replicationJobId: json['replicationJobId'] as String?,
replicationJobTerminated: json['replicationJobTerminated'] as bool?,
serverId: json['serverId'] as String?,
serverType: (json['serverType'] as String?)?.toServerType(),
vmServer: json['vmServer'] != null
? VmServer.fromJson(json['vmServer'] as Map<String, dynamic>)
: null,
);
}