forked from guibranco/BancosBrasileiros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dart.dart
168 lines (162 loc) Β· 4.91 KB
/
dart.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
class BankDTO {
String _COMPE;
String _ISPB;
String _Document;
String _LongName;
String _ShortName;
String _Network;
String _Type;
String _PixType;
bool _Charge;
bool _CreditDocument;
bool _LegalCheque;
bool _DetectaFlow;
bool _Pcr;
bool _Pcrp;
String _SalaryPortability;
List<String> _Products;
String _Url;
String _DateOperationStarted;
String _DatePixStarted;
String _DateRegistered;
String _DateUpdated;
BankDTO({
String COMPE,
String ISPB,
String Document,
String LongName,
String ShortName,
String Network,
String Type,
String PixType,
bool Charge,
bool CreditDocument,
bool LegalCheque,
bool DetectaFlow,
bool Pcr,
bool Pcrp,
String SalaryPortability,
List<String> Products,
String Url,
String DateOperationStarted,
String DatePixStarted,
String DateRegistered,
String DateUpdated,
}) {
_COMPE = COMPE;
_ISPB = ISPB;
_Document = Document;
_LongName = LongName;
_ShortName = ShortName;
_Network = Network;
_Type = Type;
_PixType = PixType;
_Charge = Charge;
_CreditDocument = CreditDocument;
_LegalCheque = LegalCheque;
_DetectaFlow = DetectaFlow;
_Pcr = Pcr;
_Pcrp = Pcrp;
_SalaryPortability = SalaryPortability;
_Products = Products;
_Url = Url;
_DateOperationStarted = DateOperationStarted;
_DatePixStarted = DatePixStarted;
_DateRegistered = DateRegistered;
_DateUpdated = DateUpdated;
}
// Getter methods
String get COMPE => _COMPE;
String get ISPB => _ISPB;
String get Document => _Document;
String get LongName => _LongName;
String get ShortName => _ShortName;
String get Network => _Network;
String get Type => _Type;
String get PixType => _PixType;
bool get Charge => _Charge;
bool get CreditDocument => _CreditDocument;
bool get LegalCheque => _LegalCheque;
bool get DetectaFlow => _DetectaFlow;
bool get Pcr => _Pcr;
bool get Pcrp => _Pcrp;
String get SalaryPortability => _SalaryPortability;
List<String> get Products => _Products;
String get Url => _Url;
String get DateOperationStarted => _DateOperationStarted;
String get DatePixStarted => _DatePixStarted;
String get DateRegistered => _DateRegistered;
String get DateUpdated => _DateUpdated;
// Setter methods
set COMPE(String value) => _COMPE = value;
set ISPB(String value) => _ISPB = value;
set Document(String value) => _Document = value;
set LongName(String value) => _LongName = value;
set ShortName(String value) => _ShortName = value;
set Network(String value) => _Network = value;
set Type(String value) => _Type = value;
set PixType(String value) => _PixType = value;
set Charge(bool value) => _Charge = value;
set CreditDocument(bool value) => _CreditDocument = value;
set LegalCheque(bool value) => _LegalCheque = value;
set DetectaFlow(bool value) => _DetectaFlow = value;
set Pcr(bool value) => _Pcr = value;
set Pcrp(bool value) => _Pcrp = value;
set SalaryPortability(String value) => _SalaryPortability = value;
set Products(List<String> value) => _Products = value;
set Url(String value) => _Url = value;
set DateOperationStarted(String value) => _DateOperationStarted = value;
set DatePixStarted(String value) => _DatePixStarted = value;
set DateRegistered(String value) => _DateRegistered = value;
set DateUpdated(String value) => _DateUpdated = value;
Map<String, dynamic> toJson() {
return {
'COMPE': _COMPE,
'ISPB': _ISPB,
'Document': _Document,
'LongName': _LongName,
'ShortName': _ShortName,
'Network': _Network,
'Type': _Type,
'PixType': _PixType,
'Charge': _Charge,
'CreditDocument': _CreditDocument,
'LegalCheque': _LegalCheque,
'DetectaFlow': _DetectaFlow,
'Pcr': _Pcr,
'Pcrp': _Pcrp,
'SalaryPortability': _SalaryPortability,
'Products': _Products,
'Url': _Url,
'DateOperationStarted': _DateOperationStarted,
'DatePixStarted': _DatePixStarted,
'DateRegistered': _DateRegistered,
'DateUpdated': _DateUpdated,
};
}
factory BankDTO.fromJson(Map<String, dynamic> json) {
return BankDTO(
COMPE: json['COMPE'],
ISPB: json['ISPB'],
Document: json['Document'],
LongName: json['LongName'],
ShortName: json['ShortName'],
Network: json['Network'],
Type: json['Type'],
PixType: json['PixType'],
Charge: json['Charge'],
CreditDocument: json['CreditDocument'],
LegalCheque: json['LegalCheque'],
DetectaFlow: json['DetectaFlow'],
Pcr: json['Pcr'],
Pcrp: json['Pcrp'],
SalaryPortability: json['SalaryPortability'],
Products: List<String>.from(json['Products']),
Url: json['Url'],
DateOperationStarted: json['DateOperationStarted'],
DatePixStarted: json['DatePixStarted'],
DateRegistered: json['DateRegistered'],
DateUpdated: json['DateUpdated'],
);
}
}