SendOtpModel.fromJson constructor

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

Implementation

factory SendOtpModel.fromJson(Map<String, dynamic> json) => SendOtpModel(
  id: json["id"],
  ttl: json["ttl"],
  created: json["created"] == null ? null : DateTime.parse(json["created"]),
  userId: json["userId"],
  receiveotpvia: json["receiveotpvia"],
);