MixProtocolStylerCodec<Owner extends Object> constructor
MixProtocolStylerCodec<Owner extends Object> ({
- required List<
MixProtocolFieldCodec< fields,Owner, Object> > - MixProtocolStylerMetadataBase<
Owner> ? metadata, - String? inventoryOwner,
- Set<
String> ? ownerFieldInventory, - int actualFieldCount(
- Owner value
- required Owner build(
- JsonMap data
Creates a styler codec from its fields and reconstruction callback.
Implementation
MixProtocolStylerCodec({
required List<MixProtocolFieldCodec<Owner, Object>> fields,
MixProtocolStylerMetadataBase<Owner>? metadata,
String? inventoryOwner,
Set<String>? ownerFieldInventory,
int Function(Owner value)? actualFieldCount,
required Owner Function(JsonMap data) build,
}) : this._(
fields: fields,
metadata: metadata,
inventoryOwner: inventoryOwner,
ownerFieldInventory: ownerFieldInventory,
actualFieldCount: actualFieldCount,
build: build,
);