Application/medcify/lib/models/api/store_url_response.dart

20 lines
432 B
Dart
Raw Normal View History

2022-09-26 06:33:52 +00:00
class StoreUrlResponse{
bool? status;
String? message;
String? url;
String? name;
StoreUrlResponse.fromJson(Map<String, dynamic> json){
status = (json["Code"] ?? "0") != "0";
message = json["Message"] ?? "Something went wrong";
url = json["URL"] ?? "";
name = json["StoreName"] ?? "";
}
StoreUrlResponse.withError(String err){
status = false;
message = err;
url = "";
name = "";
}
}