first commit
This commit is contained in:
18
lib/model/error_msg_model.dart
Normal file
18
lib/model/error_msg_model.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
class ErrorMsgModel {
|
||||
String? title;
|
||||
String? msg;
|
||||
|
||||
ErrorMsgModel({this.title, this.msg});
|
||||
|
||||
ErrorMsgModel.fromJson(Map<String, dynamic> json) {
|
||||
title = json['title'];
|
||||
msg = json['msg'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['title'] = this.title;
|
||||
data['msg'] = this.msg;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user