encode<V> static method
Implementation
static V encode<V>(
PersonsRelationship 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.legalGuardian != null) {
container.encodeBool(
'legal_guardian',
instance.legalGuardian!,
);
}
if (instance.owner != null) {
container.encodeBool(
'owner',
instance.owner!,
);
}
if (instance.representative != null) {
container.encodeBool(
'representative',
instance.representative!,
);
}
return container.value;
}