payloadStyler function
Builds a styler payload with the discriminator already filled in.
Implementation
JsonMap payloadStyler(SchemaStyler type, [JsonMap? fields]) {
return {'type': type.wireValue, ...?fields};
}
Builds a styler payload with the discriminator already filled in.
JsonMap payloadStyler(SchemaStyler type, [JsonMap? fields]) {
return {'type': type.wireValue, ...?fields};
}