CustomerInput.fromJson constructor
CustomerInput.fromJson(
- Map<String, dynamic> j
)
Implementation
factory CustomerInput.fromJson(Map<String, dynamic> j) => CustomerInput(
type: _pflicht<String>(j, 'type'),
name: _pflicht<String>(j, 'name'),
country: _pflicht<String>(j, 'country'),
legalForm: _text(j, 'legalForm'),
email: _text(j, 'email'),
phone: _text(j, 'phone'),
street: _text(j, 'street'),
houseNumber: _text(j, 'houseNumber'),
zip: _text(j, 'zip'),
city: _text(j, 'city'),
vatId: _text(j, 'vatId'),
shortCode: _text(j, 'shortCode'),
isAuthority: j['isAuthority'] is bool ? j['isAuthority'] as bool : null,
note: _text(j, 'note'),
externalId: _text(j, 'externalId'),
language: _text(j, 'language'),
);