login and begin listView
This commit is contained in:
@@ -53,16 +53,16 @@ class FilamentModel {
|
||||
// JSON Deserialisierung
|
||||
factory FilamentModel.fromJson(Map<String, dynamic> json) {
|
||||
return FilamentModel(
|
||||
id: json['id'] as String,
|
||||
name: json['name'] as String,
|
||||
type: json['type'] as String,
|
||||
color: json['color'] as String,
|
||||
id: ( json['id'] as String).trim(),
|
||||
name: (json['name'] as String).trim(),
|
||||
type: (json['type'] as String).trim(),
|
||||
color: (json['color'] as String).trim(),
|
||||
weight: json['weight'] as int? ?? 0,
|
||||
weightUsed: json['weightUsed'] as int? ?? 0,
|
||||
price: (json['price'] as num).toDouble(),
|
||||
manufacturer: json['manufacturer'] as String?,
|
||||
purchaseDate: json['purchaseDate'] as String?,
|
||||
notes: json['notes'] as String?,
|
||||
manufacturer: (json['manufacturer'] as String?)?.trim(),
|
||||
purchaseDate: (json['purchaseDate'] as String?)?.trim(),
|
||||
notes: (json['notes'] as String?)?.trim(),
|
||||
pices: json['pices'] as int,
|
||||
printingTemp: json['printingTemp'] as int,
|
||||
bedTemp: json['bedTemp'] as int,
|
||||
|
||||
@@ -33,9 +33,9 @@ class UserModel {
|
||||
|
||||
factory UserModel.fromMap(Map<String, dynamic> map) {
|
||||
return UserModel(
|
||||
uuid: map['pk_userUuid'] as String,
|
||||
username: map['benutzer'] as String,
|
||||
passwort: map['kennwort'] as String,
|
||||
uuid: (map['pk_userUuid'] as String).trim(),
|
||||
username: (map['benutzer'] as String).trim(),
|
||||
passwort: (map['kennwort'] as String).trim(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user