SecretServiceResourceScope.fromJson constructor

SecretServiceResourceScope.fromJson(
  1. Object? json
)

Implementation

factory SecretServiceResourceScope.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SecretServiceResourceScope(
    type: SecretServiceResourceScopeType.fromJson(map['type']),
    user: map['user'] == null ? null : (map['user'] as String),
  );
}