toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.maxAge != null) {
    json[r'max_age'] = this.maxAge;
  } else {
    json[r'max_age'] = null;
  }
  if (this.maxBytes != null) {
    json[r'max_bytes'] = this.maxBytes;
  } else {
    json[r'max_bytes'] = null;
  }
  if (this.maxMsgSize != null) {
    json[r'max_msg_size'] = this.maxMsgSize;
  } else {
    json[r'max_msg_size'] = null;
  }
  if (this.maxMsgs != null) {
    json[r'max_msgs'] = this.maxMsgs;
  } else {
    json[r'max_msgs'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.numReplicas != null) {
    json[r'num_replicas'] = this.numReplicas;
  } else {
    json[r'num_replicas'] = null;
  }
  if (this.retention != null) {
    json[r'retention'] = this.retention;
  } else {
    json[r'retention'] = null;
  }
  if (this.storage != null) {
    json[r'storage'] = this.storage;
  } else {
    json[r'storage'] = null;
  }
    json[r'subjects'] = this.subjects;
  return json;
}