forked from firka/firka
fix BankAccount type and move it to student.dart
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
Firka, alternative e-Kréta client.
|
||||
Copyright (C) 2025 QwIT Development
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class BankAccount {
|
||||
|
||||
final List<String> addressDataList;
|
||||
|
||||
BankAccount({
|
||||
required this.addressDataList
|
||||
});
|
||||
|
||||
}
|
||||
@@ -16,7 +16,6 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import 'package:firka/helpers/api/model/bank_account.dart';
|
||||
import 'package:firka/helpers/api/model/guardian.dart';
|
||||
import 'package:firka/helpers/api/model/institution.dart';
|
||||
|
||||
@@ -79,4 +78,29 @@ class Student {
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class BankAccount {
|
||||
|
||||
final String accountNumber;
|
||||
final String isReadOnly;
|
||||
final String ownerName;
|
||||
final String ownerType;
|
||||
|
||||
BankAccount({
|
||||
required this.accountNumber,
|
||||
required this.isReadOnly,
|
||||
required this.ownerName,
|
||||
required this.ownerType
|
||||
});
|
||||
|
||||
factory BankAccount.fromJson(Map<String, dynamic> json) {
|
||||
return BankAccount(
|
||||
accountNumber: json['BankszamlaSzam'],
|
||||
isReadOnly: json['IsReadOnly'],
|
||||
ownerName: json['BankszamlaTulajdonosNeve'],
|
||||
ownerType: json['BankszamlaTulajdonosTipusId']
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user