toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['accountName'] = accountName;
  data['accountNumber'] = accountNumber;
  data['bankName'] = bankName;
  data['email'] = email;
  return data;
}