NewBodyMappingRule
@Serializable
Represents a new body mapping rule.
Json example of the rules: RulesExample.json ConcatenatedRulesExample.json
Json example of a response provided by TheMealDB. ExampleBefore.json
Json example of a mapped response using the rules from the example above: ExampleAfter.json
Json example of a mapped response using the rules from the example above (with empty values): ExampleAfter.json
Json example of a mapped response using concatenation of values using the rules from the example above (with empty values): ConcatenatedAfter.json
Constructors
Link copied to clipboard
constructor(newBodyFields: Map<String, NewBodyField>, oldBodyFields: Map<String, OldBodyField>, ignoreEmptyValues: Boolean = false)