GetDefaultRetentionPolicyResponse.fromJson constructor

GetDefaultRetentionPolicyResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetDefaultRetentionPolicyResponse.fromJson(
    Map<String, dynamic> json) {
  return GetDefaultRetentionPolicyResponse(
    description: json['Description'] as String?,
    folderConfigurations: (json['FolderConfigurations'] as List?)
        ?.whereNotNull()
        .map((e) => FolderConfiguration.fromJson(e as Map<String, dynamic>))
        .toList(),
    id: json['Id'] as String?,
    name: json['Name'] as String?,
  );
}