fromMap static method

InputInvoice? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static InputInvoice? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'inputInvoiceName':
      return InputInvoiceName.fromMap(_map);
    case 'inputInvoiceMessage':
      return InputInvoiceMessage.fromMap(_map);
    case null:
    default:
      return null;
  }
}