encode<V> static method

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

Implementation

static V encode<V>(
  GelatoDataVerifiedOutputsDate instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.day != null) {
    container.encodeInt(
      'day',
      instance.day!,
    );
  }
  if (instance.month != null) {
    container.encodeInt(
      'month',
      instance.month!,
    );
  }
  if (instance.year != null) {
    container.encodeInt(
      'year',
      instance.year!,
    );
  }
  return container.value;
}