KAuthFailure.fromJson constructor

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

JSON에서 생성

Implementation

factory KAuthFailure.fromJson(Map<String, dynamic> json) {
  final code = json['code'] as String?;
  final message = json['message'] as String?;
  final hint = json['hint'] as String?;

  if (code != null) {
    return _createFromCode(code: code, message: message, hint: hint);
  }
  return AuthError(code: code, message: message, hint: hint);
}