toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
  if (this.duration != null) {
    json[r'duration'] = this.duration;
  } else {
    json[r'duration'] = null;
  }
  if (this.scheme != null) {
    json[r'scheme'] = this.scheme;
  } else {
    json[r'scheme'] = null;
  }
    json[r'strict'] = this.strict;
    json[r'floating'] = this.floating;
    json[r'requireProductScope'] = this.requireProductScope;
    json[r'requirePolicyScope'] = this.requirePolicyScope;
    json[r'requireMachineScope'] = this.requireMachineScope;
    json[r'requireFingerprintScope'] = this.requireFingerprintScope;
    json[r'requireUserScope'] = this.requireUserScope;
    json[r'requireChecksumScope'] = this.requireChecksumScope;
    json[r'requireVersionScope'] = this.requireVersionScope;
  if (this.requireCheckIn != null) {
    json[r'requireCheckIn'] = this.requireCheckIn;
  } else {
    json[r'requireCheckIn'] = null;
  }
  if (this.checkInInterval != null) {
    json[r'checkInInterval'] = this.checkInInterval;
  } else {
    json[r'checkInInterval'] = null;
  }
  if (this.checkInIntervalCount != null) {
    json[r'checkInIntervalCount'] = this.checkInIntervalCount;
  } else {
    json[r'checkInIntervalCount'] = null;
  }
    json[r'usePool'] = this.usePool;
  if (this.maxMachines != null) {
    json[r'maxMachines'] = this.maxMachines;
  } else {
    json[r'maxMachines'] = null;
  }
  if (this.maxProcesses != null) {
    json[r'maxProcesses'] = this.maxProcesses;
  } else {
    json[r'maxProcesses'] = null;
  }
  if (this.maxCores != null) {
    json[r'maxCores'] = this.maxCores;
  } else {
    json[r'maxCores'] = null;
  }
  if (this.maxUses != null) {
    json[r'maxUses'] = this.maxUses;
  } else {
    json[r'maxUses'] = null;
  }
  if (this.protected != null) {
    json[r'protected'] = this.protected;
  } else {
    json[r'protected'] = null;
  }
    json[r'requireHeartbeat'] = this.requireHeartbeat;
  if (this.heartbeatDuration != null) {
    json[r'heartbeatDuration'] = this.heartbeatDuration;
  } else {
    json[r'heartbeatDuration'] = null;
  }
    json[r'heartbeatCullStrategy'] = this.heartbeatCullStrategy;
    json[r'heartbeatResurrectionStrategy'] = this.heartbeatResurrectionStrategy;
  if (this.heartbeatBasis != null) {
    json[r'heartbeatBasis'] = this.heartbeatBasis;
  } else {
    json[r'heartbeatBasis'] = null;
  }
    json[r'machineUniquenessStrategy'] = this.machineUniquenessStrategy;
    json[r'machineMatchingStrategy'] = this.machineMatchingStrategy;
    json[r'expirationStrategy'] = this.expirationStrategy;
    json[r'expirationBasis'] = this.expirationBasis;
    json[r'transferStrategy'] = this.transferStrategy;
    json[r'authenticationStrategy'] = this.authenticationStrategy;
  if (this.machineLeasingStrategy != null) {
    json[r'machineLeasingStrategy'] = this.machineLeasingStrategy;
  } else {
    json[r'machineLeasingStrategy'] = null;
  }
  if (this.processLeasingStrategy != null) {
    json[r'processLeasingStrategy'] = this.processLeasingStrategy;
  } else {
    json[r'processLeasingStrategy'] = null;
  }
    json[r'overageStrategy'] = this.overageStrategy;
  if (this.metadata != null) {
    json[r'metadata'] = this.metadata;
  } else {
    json[r'metadata'] = null;
  }
  return json;
}