OrganizationDetailsModel class

Model representing the details of an organization and related statistics.

Contains a list of organization documents and counts for devices, mothers, tests, and doctors.

Constructors

OrganizationDetailsModel.new({required List<Document> organizations, required int deviceCount, required int motherCount, required int testCount, required int doctorCount})
Creates an OrganizationDetailsModel with the given details and statistics.

Properties

deviceCount int
The total number of devices associated with the organization(s).
final
doctorCount int
The total number of doctors associated with the organization(s).
final
hashCode int
The hash code for this object.
no setterinherited
motherCount int
The total number of mothers associated with the organization(s).
final
organizations List<Document>
The list of organization documents.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
testCount int
The total number of tests conducted by the organization(s).
final

Methods

copyWith({List<Document>? organizations, int? deviceCount, int? motherCount, int? testCount, int? doctorCount}) OrganizationDetailsModel
Returns a copy of this model with updated fields if provided.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited