type property

String get type
override

This should always be expectedType.

This has a type because it exists as a part of a union type, so this distinguishes it from other types.

Implementation

String get type {
  final type = _value['type'] as String;
  assert(type == expectedType);
  return type;
}