You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
Dart
44 lines
1.2 KiB
Dart
|
1 month ago
|
// To parse this JSON data, do
|
||
|
|
//
|
||
|
|
// final accountStatment = accountStatmentFromJson(jsonString);
|
||
|
|
|
||
|
|
import 'dart:convert';
|
||
|
|
|
||
|
|
List<AccountStatementModel> accountStatmentFromJson(String str) =>
|
||
|
|
List<AccountStatementModel>.from(
|
||
|
|
json.decode(str).map((x) => AccountStatementModel.fromJson(x)));
|
||
|
|
|
||
|
|
class AccountStatementModel {
|
||
|
|
final String? tranId;
|
||
|
|
final String? sgtGntrCreatedAt;
|
||
|
|
final String? sgtGntrNarration;
|
||
|
|
final String? sgtGntrvaluedate;
|
||
|
|
final String? deposit;
|
||
|
|
final String? withdrawal;
|
||
|
|
final String? status;
|
||
|
|
final String? sgtGntramt;
|
||
|
|
|
||
|
|
AccountStatementModel({
|
||
|
|
this.tranId,
|
||
|
|
this.sgtGntrCreatedAt,
|
||
|
|
this.sgtGntrNarration,
|
||
|
|
this.sgtGntrvaluedate,
|
||
|
|
this.deposit,
|
||
|
|
this.withdrawal,
|
||
|
|
this.status,
|
||
|
|
this.sgtGntramt,
|
||
|
|
});
|
||
|
|
|
||
|
|
factory AccountStatementModel.fromJson(Map<String, dynamic> json) =>
|
||
|
|
AccountStatementModel(
|
||
|
|
tranId: json["tranID"],
|
||
|
|
sgtGntrCreatedAt: json["sgtGntrCreatedAt"],
|
||
|
|
sgtGntrNarration: json["sgtGntrNarration"],
|
||
|
|
sgtGntrvaluedate: json["sgtGntrvaluedate"],
|
||
|
|
deposit: json["deposit"],
|
||
|
|
withdrawal: json["withdrawal"],
|
||
|
|
status: json["status"],
|
||
|
|
sgtGntramt: json["sgtGntramt"],
|
||
|
|
);
|
||
|
|
}
|