fromJson static method

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

Implementation

static SecretVersion fromJson(Map<String, dynamic> json) {
  return SecretVersion(
    id: json['id'] as String,
    secretId: json['secret_id'] as String,
    version: json['version'] as int,
    encryptionKeyId: json['encryption_key_id'] as String,
    valueSha256: json['value_sha256'] as String?,
    createdByUserId: json['created_by_user_id'] as String?,
    createdByServiceAccountId: json['created_by_service_account_id'] as String?,
    createdAt: DateTime.parse(json['created_at'] as String),
  );
}