ListArchiveRulesResponse.fromJson constructor

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

Implementation

factory ListArchiveRulesResponse.fromJson(Map<String, dynamic> json) {
  return ListArchiveRulesResponse(
    archiveRules: (json['archiveRules'] as List)
        .whereNotNull()
        .map((e) => ArchiveRuleSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}