OtpSentResponse.fromJson constructor

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

Implementation

factory OtpSentResponse.fromJson(Map<String, dynamic> json) {
  return OtpSentResponse(
    data: OtpSentResponseData(
      interval: json['interval'],
      otpRequired: json['otp_required'],
      token: json['token'],
      userType: json['user_type'],
    ),
    error: json['error'],
    isSuccess: json['isSuccess'],
    statusCode: json['status_code'],
    success: json['success'],
    timestamp: json['timestamp'],
  );
}