toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = id;
  json[r'orgID'] = orgID;
  json[r'bucketID'] = bucketID;
  json[r'database'] = database;
  json[r'retention_policy'] = retentionPolicy;
  json[r'default'] = default_;
  if (links != null) {
    json[r'links'] = links;
  }
  return json;
}