toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (name != null) {
    json[r'name'] = name;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (retentionRules != null) {
    json[r'retentionRules'] = retentionRules;
  }
  return json;
}