v1CreateAuthenticatorsIntent.fromJson constructor

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

Implementation

factory v1CreateAuthenticatorsIntent.fromJson(Map<String, dynamic> json) {
  final _authenticators = (json['authenticators'] as List).map((e) => v1AuthenticatorParams.fromJson(e as Map<String, dynamic>)).toList();
  final _userId = json['userId'] as String;
  return v1CreateAuthenticatorsIntent(
    authenticators: _authenticators,
    userId: _userId,
  );
}