SendOTPResponse.fromJson constructor

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

Creates a SendOTPResponse instance from a JSON map.

The json parameter is a JSON map representing the response data. The 'message', 'smsID', and 'total_sms' keys in the json map are used to extract the corresponding property values for the SendOTPResponse instance.

Implementation

factory SendOTPResponse.fromJson(Map<String, dynamic> json) =>
    SendOTPResponse(
      message: json['message'],
      smsID: json['smsID'],
      totalSms: json['total_sms'],
    );