encode<V> static method
Implementation
static V encode<V>(
IssuingNetworkTokenDevice instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.deviceFingerprint != null) {
container.encodeString(
'device_fingerprint',
instance.deviceFingerprint!,
);
}
if (instance.ipAddress != null) {
container.encodeString(
'ip_address',
instance.ipAddress!,
);
}
if (instance.location != null) {
container.encodeString(
'location',
instance.location!,
);
}
if (instance.name != null) {
container.encodeString(
'name',
instance.name!,
);
}
if (instance.phoneNumber != null) {
container.encodeString(
'phone_number',
instance.phoneNumber!,
);
}
if (instance.type != null) {
container.encodeString(
'type',
instance.type!,
);
}
return container.value;
}