toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final vmManagerName = this.vmManagerName;
  final vmManagerType = this.vmManagerType;
  final vmName = this.vmName;
  final vmPath = this.vmPath;
  final vmServerAddress = this.vmServerAddress;
  return {
    if (vmManagerName != null) 'vmManagerName': vmManagerName,
    if (vmManagerType != null) 'vmManagerType': vmManagerType.toValue(),
    if (vmName != null) 'vmName': vmName,
    if (vmPath != null) 'vmPath': vmPath,
    if (vmServerAddress != null) 'vmServerAddress': vmServerAddress,
  };
}