toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.batch != null) {
    json[r'batch'] = this.batch;
  } else {
    json[r'batch'] = null;
  }
  if (this.expires != null) {
    json[r'expires'] = this.expires;
  } else {
    json[r'expires'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.noWait != null) {
    json[r'no_wait'] = this.noWait;
  } else {
    json[r'no_wait'] = null;
  }
  if (this.stream != null) {
    json[r'stream'] = this.stream;
  } else {
    json[r'stream'] = null;
  }
  return json;
}