ListSecretVersionIdsResponse.fromJson constructor

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

Implementation

factory ListSecretVersionIdsResponse.fromJson(Map<String, dynamic> json) {
  return ListSecretVersionIdsResponse(
    arn: json['ARN'] as String?,
    name: json['Name'] as String?,
    nextToken: json['NextToken'] as String?,
    versions: (json['Versions'] as List?)
        ?.whereNotNull()
        .map((e) =>
            SecretVersionsListEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}