digit_data_model 1.0.5-dev.1 digit_data_model: ^1.0.5-dev.1 copied to clipboard
The digit_data_model package is a data modeling library. It defines various classes, enums, and functions.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add digit_data_model
With Flutter:
$ flutter pub add digit_data_model
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
digit_data_model: ^1.0.5-dev.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:digit_data_model/blocs/boundary/boundary.dart';
import 'package:digit_data_model/blocs/boundary/boundary.freezed.dart';
import 'package:digit_data_model/blocs/facility/facility.dart';
import 'package:digit_data_model/blocs/facility/facility.freezed.dart';
import 'package:digit_data_model/blocs/product_variant/product_variant.dart';
import 'package:digit_data_model/blocs/product_variant/product_variant.freezed.dart';
import 'package:digit_data_model/blocs/project_facility/project_facility.dart';
import 'package:digit_data_model/blocs/project_facility/project_facility.freezed.dart';
import 'package:digit_data_model/blocs/user/user.dart';
import 'package:digit_data_model/blocs/user/user.freezed.dart';
import 'package:digit_data_model/data/data_repository.dart';
import 'package:digit_data_model/data/local_store/no_sql/schema/entity_mapper_listener.dart';
import 'package:digit_data_model/data/local_store/no_sql/schema/oplog.dart';
import 'package:digit_data_model/data/local_store/no_sql/schema/oplog.g.dart';
import 'package:digit_data_model/data/local_store/sql_store/sql_store.dart';
import 'package:digit_data_model/data/local_store/sql_store/sql_store.g.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/address.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/attributes.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/boundary.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/document.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/downsync.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/downsync_criteria.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/facility.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/identifier.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/individual.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/locality.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/localization.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/name.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/attendance.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/attendance_register.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/attendee.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/hf_referral.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/household.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/household_member.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/referral.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/side_effect.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/staff.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/stock.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/stock_reconciliation.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/task.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/package_tables/task_resource.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/pgr_service.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/product.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/product_variant.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/project.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/project_beneficiary.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/project_facility.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/project_product_variant.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/project_resource.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/project_staff.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/project_type.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/service.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/service_attributes.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/service_definition.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/target.dart';
import 'package:digit_data_model/data/local_store/sql_store/tables/user.dart';
import 'package:digit_data_model/data/oplog/oplog.dart';
import 'package:digit_data_model/data/repositories/local/address.dart';
import 'package:digit_data_model/data/repositories/local/base/attributes_base.dart';
import 'package:digit_data_model/data/repositories/local/base/facility_base.dart';
import 'package:digit_data_model/data/repositories/local/base/individual_base.dart';
import 'package:digit_data_model/data/repositories/local/base/product_base.dart';
import 'package:digit_data_model/data/repositories/local/base/product_variant_base.dart';
import 'package:digit_data_model/data/repositories/local/base/project_base.dart';
import 'package:digit_data_model/data/repositories/local/base/project_facility_base.dart';
import 'package:digit_data_model/data/repositories/local/base/project_product_variant_base.dart';
import 'package:digit_data_model/data/repositories/local/base/project_resource_base.dart';
import 'package:digit_data_model/data/repositories/local/base/project_staff_base.dart';
import 'package:digit_data_model/data/repositories/local/base/user_base.dart';
import 'package:digit_data_model/data/repositories/local/boundary.dart';
import 'package:digit_data_model/data/repositories/local/facility.dart';
import 'package:digit_data_model/data/repositories/local/individual.dart';
import 'package:digit_data_model/data/repositories/local/product_variant.dart';
import 'package:digit_data_model/data/repositories/local/project.dart';
import 'package:digit_data_model/data/repositories/local/project_facility.dart';
import 'package:digit_data_model/data/repositories/local/project_resource.dart';
import 'package:digit_data_model/data/repositories/local/project_staff.dart';
import 'package:digit_data_model/data/repositories/oplog/oplog.dart';
import 'package:digit_data_model/data/repositories/remote/attributes.dart';
import 'package:digit_data_model/data/repositories/remote/boundary.dart';
import 'package:digit_data_model/data/repositories/remote/facility.dart';
import 'package:digit_data_model/data/repositories/remote/individual.dart';
import 'package:digit_data_model/data/repositories/remote/product.dart';
import 'package:digit_data_model/data/repositories/remote/product_variant.dart';
import 'package:digit_data_model/data/repositories/remote/project.dart';
import 'package:digit_data_model/data/repositories/remote/project_facility.dart';
import 'package:digit_data_model/data/repositories/remote/project_product_variant.dart';
import 'package:digit_data_model/data/repositories/remote/project_resource.dart';
import 'package:digit_data_model/data/repositories/remote/project_staff.dart';
import 'package:digit_data_model/data/repositories/remote/user.dart';
import 'package:digit_data_model/data_model.dart';
import 'package:digit_data_model/data_model.init.dart';
import 'package:digit_data_model/data_model.mapper.dart';
import 'package:digit_data_model/models/entities/address.dart';
import 'package:digit_data_model/models/entities/address.mapper.dart';
import 'package:digit_data_model/models/entities/address_type.dart';
import 'package:digit_data_model/models/entities/address_type.mapper.dart';
import 'package:digit_data_model/models/entities/attributes.dart';
import 'package:digit_data_model/models/entities/attributes.mapper.dart';
import 'package:digit_data_model/models/entities/beneficiary_type.dart';
import 'package:digit_data_model/models/entities/beneficiary_type.mapper.dart';
import 'package:digit_data_model/models/entities/blood_group.dart';
import 'package:digit_data_model/models/entities/blood_group.mapper.dart';
import 'package:digit_data_model/models/entities/boundary.dart';
import 'package:digit_data_model/models/entities/boundary.mapper.dart';
import 'package:digit_data_model/models/entities/document.dart';
import 'package:digit_data_model/models/entities/document.mapper.dart';
import 'package:digit_data_model/models/entities/facility.dart';
import 'package:digit_data_model/models/entities/facility.mapper.dart';
import 'package:digit_data_model/models/entities/gender.dart';
import 'package:digit_data_model/models/entities/gender.mapper.dart';
import 'package:digit_data_model/models/entities/identifier.dart';
import 'package:digit_data_model/models/entities/identifier.mapper.dart';
import 'package:digit_data_model/models/entities/individual.dart';
import 'package:digit_data_model/models/entities/individual.mapper.dart';
import 'package:digit_data_model/models/entities/locality.dart';
import 'package:digit_data_model/models/entities/locality.mapper.dart';
import 'package:digit_data_model/models/entities/name.dart';
import 'package:digit_data_model/models/entities/name.mapper.dart';
import 'package:digit_data_model/models/entities/name_model_converter.dart';
import 'package:digit_data_model/models/entities/pgr_application_status.dart';
import 'package:digit_data_model/models/entities/pgr_application_status.mapper.dart';
import 'package:digit_data_model/models/entities/product.dart';
import 'package:digit_data_model/models/entities/product.mapper.dart';
import 'package:digit_data_model/models/entities/product_variant.dart';
import 'package:digit_data_model/models/entities/product_variant.mapper.dart';
import 'package:digit_data_model/models/entities/project.dart';
import 'package:digit_data_model/models/entities/project.mapper.dart';
import 'package:digit_data_model/models/entities/project_facility.dart';
import 'package:digit_data_model/models/entities/project_facility.mapper.dart';
import 'package:digit_data_model/models/entities/project_product_variant.dart';
import 'package:digit_data_model/models/entities/project_product_variant.mapper.dart';
import 'package:digit_data_model/models/entities/project_resource.dart';
import 'package:digit_data_model/models/entities/project_resource.mapper.dart';
import 'package:digit_data_model/models/entities/project_staff.dart';
import 'package:digit_data_model/models/entities/project_staff.mapper.dart';
import 'package:digit_data_model/models/entities/project_type.dart';
import 'package:digit_data_model/models/entities/project_type.mapper.dart';
import 'package:digit_data_model/models/entities/target.dart';
import 'package:digit_data_model/models/entities/target.mapper.dart';
import 'package:digit_data_model/models/entities/user.dart';
import 'package:digit_data_model/models/entities/user.mapper.dart';
import 'package:digit_data_model/models/entities/user_action.dart';
import 'package:digit_data_model/models/entities/user_action.mapper.dart';
import 'package:digit_data_model/models/oplog/oplog_entry.dart';
import 'package:digit_data_model/models/oplog/oplog_entry.mapper.dart';
import 'package:digit_data_model/models/project_type/project_type_model.dart';
import 'package:digit_data_model/models/project_type/project_type_model.freezed.dart';
import 'package:digit_data_model/models/project_type/project_type_model.g.dart';
import 'package:digit_data_model/utils/app_exception.dart';
import 'package:digit_data_model/utils/constants.dart';
import 'package:digit_data_model/utils/typedefs.dart';
import 'package:digit_data_model/utils/utils.dart';