InlineSchemaOptions.fromMap constructor

InlineSchemaOptions.fromMap(
  1. Map<String, dynamic> map
)

Produces an InlineSchemaOptions that is easily consumable from the ConstantReader.

Implementation

InlineSchemaOptions.fromMap(Map<String, dynamic> map)
    : this(
        arrayItemSuffix: map['arrayItemSuffix'],
        mapItemSuffix: map['mapItemSuffix'],
        skipSchemaReuse: map['skipSchemaReuse'] ?? true,
        refactorAllofInlineSchemas: map['refactorAllofInlineSchemas'] ?? true,
        resolveInlineEnums: map['resolveInlineEnums'] ?? true,
      );