This commit is contained in:
unknown
2021-09-11 15:53:37 +02:00
parent b0565ddcd9
commit a801503838
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ class Supporter {
factory Supporter.fromJson(Map json) {
return Supporter(
json["name"] ?? "",
(json["name"] ?? "").trim(),
json["amount"] ?? "",
json["platform"] ?? "",
);

View File

@@ -32,7 +32,7 @@ class User {
instituteCode: map["institute_code"],
username: map["username"],
password: map["password"],
name: map["name"],
name: map["name"].trim(),
student: Student.fromJson(jsonDecode(map["student"])),
);
}