toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final replicationJobId = this.replicationJobId;
  final replicationJobTerminated = this.replicationJobTerminated;
  final serverId = this.serverId;
  final serverType = this.serverType;
  final vmServer = this.vmServer;
  return {
    if (replicationJobId != null) 'replicationJobId': replicationJobId,
    if (replicationJobTerminated != null)
      'replicationJobTerminated': replicationJobTerminated,
    if (serverId != null) 'serverId': serverId,
    if (serverType != null) 'serverType': serverType.toValue(),
    if (vmServer != null) 'vmServer': vmServer,
  };
}