toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'username'] = username;
if (password != null) {
json[r'password'] = password;
}
json[r'org'] = org;
json[r'bucket'] = bucket;
if (retentionPeriodSeconds != null) {
json[r'retentionPeriodSeconds'] = retentionPeriodSeconds;
}
if (retentionPeriodHrs != null) {
json[r'retentionPeriodHrs'] = retentionPeriodHrs;
}
if (token != null) {
json[r'token'] = token;
}
return json;
}