MixProtocolStylerCodec<Owner extends Object> constructor

MixProtocolStylerCodec<Owner extends Object>({
  1. required List<MixProtocolFieldCodec<Owner, Object>> fields,
  2. MixProtocolStylerMetadataBase<Owner>? metadata,
  3. String? inventoryOwner,
  4. Set<String>? ownerFieldInventory,
  5. int actualFieldCount(
    1. Owner value
    )?,
  6. required Owner build(
    1. 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,
     );