Category class

Available extensions
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

Category({required String id, required String categoryGroupId, required String name, required bool hidden, String? originalCategoryGroupId, String? note, required num budgeted, required num activity, required num balance, CategoryGoalType? goalType, DateTime? goalCreationMonth, num? goalTarget, DateTime? goalTargetMonth, int? goalPercentageComplete, int? goalMonthsToBudget, num? goalUnderFunded, num? goalOverallFunded, num? goalOverallLeft, required bool deleted})
Category.fromJson(Map<String, dynamic> json)
factory

Properties

activity num
final
balance num
final
budgeted num
final
categoryGroupId String
final
deleted bool
final
goalCreationMonth DateTime?
final
goalMonthsToBudget int?
final
goalOverallFunded num?
final
goalOverallLeft num?
final
goalPercentageComplete int?
final
goalTarget num?
final
goalTargetMonth DateTime?
final
goalType CategoryGoalType?
final
goalUnderFunded num?
final
hashCode int
The hash code for this object.
no setteroverride
hidden bool
final
id String
final
name String
final
note String?
final
originalCategoryGroupId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, String? categoryGroupId, String? name, bool? hidden, String? originalCategoryGroupId, String? note, num? budgeted, num? activity, num? balance, CategoryGoalType? goalType, DateTime? goalCreationMonth, num? goalTarget, DateTime? goalTargetMonth, int? goalPercentageComplete, int? goalMonthsToBudget, num? goalUnderFunded, num? goalOverallFunded, num? goalOverallLeft, bool? deleted}) Category

Available on Category, provided by the $CategoryExtension extension

copyWithWrapped({Wrapped<String>? id, Wrapped<String>? categoryGroupId, Wrapped<String>? name, Wrapped<bool>? hidden, Wrapped<String?>? originalCategoryGroupId, Wrapped<String?>? note, Wrapped<num>? budgeted, Wrapped<num>? activity, Wrapped<num>? balance, Wrapped<CategoryGoalType?>? goalType, Wrapped<DateTime?>? goalCreationMonth, Wrapped<num?>? goalTarget, Wrapped<DateTime?>? goalTargetMonth, Wrapped<int?>? goalPercentageComplete, Wrapped<int?>? goalMonthsToBudget, Wrapped<num?>? goalUnderFunded, Wrapped<num?>? goalOverallFunded, Wrapped<num?>? goalOverallLeft, Wrapped<bool>? deleted}) Category

Available on Category, provided by the $CategoryExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator.
override

Constants

fromJsonFactory → const Category Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(Category instance)