Group constructor

Group({
  1. required int id,
  2. required String name,
  3. @JsonKey(name: 'suiteID') required int suiteId,
  4. @JsonKey(name: 'parentID') int? parentId,
  5. required int testCount,
  6. int? line,
  7. int? column,
  8. String? url,
})

Factory constructor to create a Group

Implementation

factory Group({
  /// An opaque ID for this group.
  required int id,

  /// The name of this group, including prefixes from any containing groups.
  required String name,

  /// The ID of the suite containing this group.
  @JsonKey(name: 'suiteID') required int suiteId,

  /// The ID of this group's parent group, unless it's the root group.
  @JsonKey(name: 'parentID') int? parentId,

  /// The number of tests (recursively) within this group.
  required int testCount,

  /// The (1-based) line on which this group was defined, or `null`.
  int? line,

  /// The (1-based) column on which this group was defined, or `null`.
  int? column,

  /// The URL for the file in which this group was defined, or `null`.
  String? url,
}) = _Group;