toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('name')) {
    final l$name = name;
    result$data['name'] = l$name;
  }
  if (_$data.containsKey('type')) {
    final l$type = type;
    result$data['type'] =
        l$type == null ? null : toJson$Enum$BankDetailsHolderTypeEnum(l$type);
  }
  if (_$data.containsKey('address')) {
    final l$address = address;
    result$data['address'] = l$address?.toJson();
  }
  return result$data;
}