encode<V> static method
Implementation
static V encode<V>(
AccountRelationship instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.director != null) {
container.encodeBool(
'director',
instance.director!,
);
}
if (instance.executive != null) {
container.encodeBool(
'executive',
instance.executive!,
);
}
if (instance.owner != null) {
container.encodeBool(
'owner',
instance.owner!,
);
}
if (instance.percentOwnership != null) {
container.encodeDouble(
'percent_ownership',
instance.percentOwnership!,
);
}
if (instance.title != null) {
container.encodeString(
'title',
instance.title!,
);
}
return container.value;
}