class AddOrderPaymentSelectAccountResponse { List? accountList; String? error; String? message; AddOrderPaymentSelectAccountResponse( {this.accountList, this.error, this.message}); AddOrderPaymentSelectAccountResponse.fromJson(Map json) { if (json['account_list'] != null) { accountList = []; json['account_list'].forEach((v) { accountList!.add(new AccountList.fromJson(v)); }); } error = json['error']; message = json['message']; } Map toJson() { final Map data = new Map(); if (this.accountList != null) { data['account_list'] = this.accountList!.map((v) => v.toJson()).toList(); } data['error'] = this.error; data['message'] = this.message; return data; } } class AccountList { String? id; String? text; AccountList({this.id, this.text}); AccountList.fromJson(Map json) { id = json['id']; text = json['text']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['text'] = this.text; return data; } }