serialize method
Serializes information the current object
writer Serialization writer to use to serialize this model
Implementation
@override
void serialize(SerializationWriter writer) {
writer.writeObjectValue<BankAccount>(null, bankAccount, [card]);
}