1
import 'package:built_collection/built_collection.dart';
2
import 'package:flagr/model/evaluation_entity.dart';
3
import 'package:built_value/built_value.dart';
4
import 'package:built_value/serializer.dart';
5

6
part 'evaluation_batch_request.g.dart';
7

8
abstract class EvaluationBatchRequest
9
    implements Built<EvaluationBatchRequest, EvaluationBatchRequestBuilder> {
10
  @nullable
11
  @BuiltValueField(wireName: r'entities')
12
  BuiltList<EvaluationEntity> get entities;
13

14
  @nullable
15
  @BuiltValueField(wireName: r'enableDebug')
16
  bool get enableDebug;
17
  /* flagIDs */
18
  @nullable
19
  @BuiltValueField(wireName: r'flagIDs')
20
  BuiltList<int> get flagIDs;
21
  /* flagKeys. Either flagIDs or flagKeys works. If pass in both, Flagr may return duplicate results. */
22
  @nullable
23
  @BuiltValueField(wireName: r'flagKeys')
24
  BuiltList<String> get flagKeys;
25

26
  // Boilerplate code needed to wire-up generated code
27 0
  EvaluationBatchRequest._();
28

29
  factory EvaluationBatchRequest([updates(EvaluationBatchRequestBuilder b)]) =
30
      _$EvaluationBatchRequest;
31 1
  static Serializer<EvaluationBatchRequest> get serializer =>
32 1
      _$evaluationBatchRequestSerializer;
33
}

Read our documentation on viewing source code .

Loading