Input$BankDetailsHolderInput.fromJson constructor

Input$BankDetailsHolderInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

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