first commit
This commit is contained in:
26
lib/models/all_info_model.dart
Normal file
26
lib/models/all_info_model.dart
Normal file
@ -0,0 +1,26 @@
|
||||
class AllInfoModel {
|
||||
String? entity;
|
||||
String? currency;
|
||||
String? alphabeticCode;
|
||||
int? numericCode;
|
||||
int? minorUnit;
|
||||
String? withdrawalDate;
|
||||
|
||||
AllInfoModel(
|
||||
{this.entity,
|
||||
this.currency,
|
||||
this.alphabeticCode,
|
||||
this.numericCode,
|
||||
this.minorUnit,
|
||||
this.withdrawalDate});
|
||||
|
||||
AllInfoModel.fromJson(Map<String, dynamic> json) {
|
||||
entity = json['Entity'];
|
||||
currency = json['Currency'];
|
||||
alphabeticCode = json['AlphabeticCode'];
|
||||
// if jsonNumericCode is string, convert to int
|
||||
numericCode = num.tryParse(json['NumericCode'].toString())?.toInt();
|
||||
minorUnit = num.tryParse(json['NumericCode'].toString())?.toInt();
|
||||
withdrawalDate = json['WithdrawalDate'];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user