toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (user != null) {
    json[r'user'] = user;
  }
  if (org != null) {
    json[r'org'] = org;
  }
  if (bucket != null) {
    json[r'bucket'] = bucket;
  }
  if (auth != null) {
    json[r'auth'] = auth;
  }
  return json;
}