toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final autoprovision = this.autoprovision;
  final driver = this.driver;
  final driverOpts = this.driverOpts;
  final labels = this.labels;
  final scope = this.scope;
  return {
    if (autoprovision != null) 'autoprovision': autoprovision,
    if (driver != null) 'driver': driver,
    if (driverOpts != null) 'driverOpts': driverOpts,
    if (labels != null) 'labels': labels,
    if (scope != null) 'scope': scope.toValue(),
  };
}