codigo actual del servidor, con avances de joan

This commit is contained in:
Jose Sanchez
2023-08-07 15:52:04 -04:00
commit 3cd9b8bbe8
3070 changed files with 532255 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
// To parse this JSON data, do
//
// final userByTokenResponse = userByTokenResponseFromJson(jsonString);
import 'dart:convert';
UserByTokenResponse userByTokenResponseFromJson(String str) => UserByTokenResponse.fromJson(json.decode(str));
String userByTokenResponseToJson(UserByTokenResponse data) => json.encode(data.toJson());
class UserByTokenResponse {
UserByTokenResponse({
this.result,
this.id,
this.name,
this.email,
this.avatar,
this.avatar_original,
this.phone,
});
bool? result;
var id;
String? name;
String? email;
String? avatar;
String? avatar_original;
String? phone;
factory UserByTokenResponse.fromJson(Map<String, dynamic> json) => UserByTokenResponse(
result: json["result"] == null ? null : json["result"],
id: json["id"] == null ? null : json["id"],
name: json["name"] == null ? null : json["name"],
email: json["email"] == null ? null : json["email"],
avatar: json["avatar"] == null ? null : json["avatar"],
avatar_original: json["avatar_original"] == null ? null : json["avatar_original"],
phone: json["phone"] == null ? null : json["phone"],
);
Map<String, dynamic> toJson() => {
"result": result == null ? null : result,
"id": id == null ? null : id,
"name": name == null ? null : name,
"email": email == null ? null : email,
"avatar": avatar == null ? null : avatar,
"avatar_original": avatar_original == null ? null : avatar_original,
"phone": phone == null ? null : phone,
};
}