SecretVersionsListEntry.fromJson constructor

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

Implementation

factory SecretVersionsListEntry.fromJson(Map<String, dynamic> json) {
  return SecretVersionsListEntry(
    createdDate: timeStampFromJson(json['CreatedDate']),
    lastAccessedDate: timeStampFromJson(json['LastAccessedDate']),
    versionId: json['VersionId'] as String?,
    versionStages: (json['VersionStages'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}