optional static method

OptionalLayout optional(
  1. Layout layout, {
  2. String? property,
  3. bool keepSize = false,
  4. BaseIntiger? discriminator,
})

Implementation

static OptionalLayout optional(Layout layout,
    {String? property, bool keepSize = false, BaseIntiger? discriminator}) {
  return OptionalLayout(layout,
      property: property,
      discriminator: discriminator,
      keepLayoutSize: keepSize);
}