com.microsoft.kiota.serialization.Parsable Maven / Gradle / Ivy
package com.microsoft.kiota.serialization;
import jakarta.annotation.Nonnull;
import java.util.Map;
import java.util.function.Consumer;
/**
* Defines a serializable model object.
*/
public interface Parsable {
/**
* Gets the deserialization information for this object.
* @return The deserialization information for this object where each entry is a property key with its deserialization callback.
*/
@Nonnull Map> getFieldDeserializers();
/**
* Writes the objects properties to the current writer.
* @param writer The writer to write to.
*/
void serialize(@Nonnull final SerializationWriter writer);
}