toJson method

Map<String, dynamic> toJson()

Implementation

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