SecretValue.fromJson constructor

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

Implementation

factory SecretValue.fromJson(Map<String, dynamic> json) {
  final extraKeys = json.keys.where((key) => key != 'id').toList();
  if (extraKeys.isNotEmpty) {
    throw FormatException('unsupported SecretValue fields: ${extraKeys.join(', ')}');
  }
  return SecretValue(id: json['id'] as String);
}