toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.ackPolicy != null) {
json[r'ack_policy'] = this.ackPolicy;
} else {
json[r'ack_policy'] = null;
}
if (this.ackWait != null) {
json[r'ack_wait'] = this.ackWait;
} else {
json[r'ack_wait'] = null;
}
if (this.deliverPolicy != null) {
json[r'deliver_policy'] = this.deliverPolicy;
} else {
json[r'deliver_policy'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.durableName != null) {
json[r'durable_name'] = this.durableName;
} else {
json[r'durable_name'] = null;
}
if (this.filterSubject != null) {
json[r'filter_subject'] = this.filterSubject;
} else {
json[r'filter_subject'] = null;
}
if (this.maxAckPending != null) {
json[r'max_ack_pending'] = this.maxAckPending;
} else {
json[r'max_ack_pending'] = null;
}
if (this.maxDeliver != null) {
json[r'max_deliver'] = this.maxDeliver;
} else {
json[r'max_deliver'] = null;
}
if (this.optStartSeq != null) {
json[r'opt_start_seq'] = this.optStartSeq;
} else {
json[r'opt_start_seq'] = null;
}
if (this.optStartTime != null) {
json[r'opt_start_time'] = this.optStartTime!.toUtc().toIso8601String();
} else {
json[r'opt_start_time'] = null;
}
if (this.replayPolicy != null) {
json[r'replay_policy'] = this.replayPolicy;
} else {
json[r'replay_policy'] = null;
}
if (this.stream != null) {
json[r'stream'] = this.stream;
} else {
json[r'stream'] = null;
}
return json;
}