encode<V> static method

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

Implementation

static V encode<V>(
  AccountsCreatedRangeQuerySpecs instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.gt != null) {
    container.encodeInt(
      'gt',
      instance.gt!,
    );
  }
  if (instance.gte != null) {
    container.encodeInt(
      'gte',
      instance.gte!,
    );
  }
  if (instance.lt != null) {
    container.encodeInt(
      'lt',
      instance.lt!,
    );
  }
  if (instance.lte != null) {
    container.encodeInt(
      'lte',
      instance.lte!,
    );
  }
  return container.value;
}