Files
karvon_market/app_code/lib/models/common_response.dart
jahongireshonqulov 9fbdabafb4 Initial commit
2025-10-17 19:42:02 +05:00

30 lines
670 B
Dart

// To parse this JSON data, do
//
// final commonResponse = commonResponseFromJson(jsonString);
import 'dart:convert';
CommonResponse commonResponseFromJson(String str) => CommonResponse.fromJson(json.decode(str));
String commonResponseToJson(CommonResponse data) => json.encode(data.toJson());
class CommonResponse {
bool result;
var message;
CommonResponse({
required this.result,
required this.message,
});
factory CommonResponse.fromJson(Map<String, dynamic> json) => CommonResponse(
result: json["result"],
message: json["message"],
);
Map<String, dynamic> toJson() => {
"result": result,
"message": message,
};
}