encode<V> static method

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

Implementation

static V encode<V>(
  TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.splashscreen != null) {
    FileOrId.encode(
      instance.splashscreen!,
      container.nestedSingleValueContainer('splashscreen').encoder,
    );
  }
  return container.value;
}