fromJson static method

AuthResponse fromJson(
  1. dynamic json
)

Implementation

static AuthResponse fromJson(dynamic json) {
  return AuthResponse(
    session:
        json['session'] != null ? Session.fromJson(json['session']) : null,
    mfa: json['mfa'] != null
        ? MultiFactorAuthenticationInfo.fromJson(json['mfa'])
        : null,
  );
}