fromJson static method

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

Implementation

static SecretVersionsPage fromJson(Map<String, dynamic> json) {
  return SecretVersionsPage(
    versions: ((json['versions'] as List?) ?? const [])
        .whereType<Map>()
        .map((item) => SecretVersion.fromJson(item.cast<String, dynamic>()))
        .toList(),
  );
}