IssuingNetworkTokenDevice.fromJson constructor
IssuingNetworkTokenDevice.fromJson(
- Object? json
Implementation
factory IssuingNetworkTokenDevice.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IssuingNetworkTokenDevice(
deviceFingerprint: map['device_fingerprint'] == null
? null
: (map['device_fingerprint'] as String),
ipAddress:
map['ip_address'] == null ? null : (map['ip_address'] as String),
location: map['location'] == null ? null : (map['location'] as String),
name: map['name'] == null ? null : (map['name'] as String),
phoneNumber:
map['phone_number'] == null ? null : (map['phone_number'] as String),
type: map['type'] == null
? null
: IssuingNetworkTokenDeviceType.fromJson(map['type']),
);
}