encode<V> static method

V encode<V>(
  1. Rule instance,
  2. Encoder<V> encoder
)
override

Implementation

static V encode<V>(
  Rule instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'action',
    instance.action,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeString(
    'predicate',
    instance.predicate,
  );
  return container.value;
}