OtpRespponse.fromJson constructor

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

Implementation

OtpRespponse.fromJson(Map<String, dynamic> json) {
  status = json['status'];
  message = json['message'];
  data = hasError
      ? null
      : json['data'] != null
          ? Data.fromJson(json['data'])
          : null;
}