major refactoring

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-05-27 19:59:34 +05:30
parent 99afb0ba8e
commit 839ced618b
106 changed files with 4263 additions and 1937 deletions
@@ -0,0 +1,25 @@
///
class SocketError {
///
const SocketError({
this.code = -1,
this.statusCode = -1,
this.message = '',
});
///
factory SocketError.fromJson(Map<String, dynamic> json) => SocketError(
code: json['code'],
statusCode: json['StatusCode'],
message: json['message'],
);
///
final int code;
///
final int statusCode;
///
final String message;
}