enumSchema static method

dynamic enumSchema(
  1. Iterable<String> values
)

Implementation

static dynamic enumSchema(Iterable<String> values) => [
      {'type': 'string', 'enum': values},
      {
        'type': 'string',
        'pattern': r'^\{\{.*\}\}$',
      },
      {
        'type': 'string',
        'pattern': r'##.*##$',
      },
    ];