20 lines
432 B
Dart
20 lines
432 B
Dart
|
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 = "";
|
||
|
}
|
||
|
}
|