v1OtpAuthResult.fromJson constructor

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

Implementation

factory v1OtpAuthResult.fromJson(Map<String, dynamic> json) {
  final _userId = json['userId'] as String;
  final _apiKeyId = json['apiKeyId'] as String?;
  final _credentialBundle = json['credentialBundle'] as String?;
  return v1OtpAuthResult(
    userId: _userId,
    apiKeyId: _apiKeyId,
    credentialBundle: _credentialBundle,
  );
}