encode<V> static method

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

Implementation

static V encode<V>(
  RadarValueListItem instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'created',
    instance.created,
  );
  container.encodeString(
    'created_by',
    instance.createdBy,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeBool(
    'livemode',
    instance.livemode,
  );
  container.encodeString(
    'object',
    'radar.value_list_item',
  );
  container.encodeString(
    'value',
    instance.value,
  );
  container.encodeString(
    'value_list',
    instance.valueList,
  );
  return container.value;
}