carp_core_common library Null safety

The common CARP core domain classes.

Hold serialization logic to (de)serialize Dart classes to/from JSON including support for polymorphic. See the Serializable class, which contains the logic for polymorphic serialization.

Classes

FromJsonFactory
A factory that holds fromJson functions to be used in JSON deserialization.
Serializable
This is the base class for all JSON serializable objects.
ServiceRequest
An abstract base class for all RPC requests to CARP.

Functions

toJsonString(Object object) String
A convient function to convert a Dart object into a JSON string.

Exceptions / Errors

SerializationException
Throws when serialization to/from json fails.