getGetterSetterMap method

  1. @override
Map<String, Tuple2<Getter, Setter>> getGetterSetterMap()

Implemented by subclasses to map the getters and setters of the object.

Cannot have keys that have the values TYPE or ID

Implementation

@override
Map<String, Tuple2<Getter, Setter>> getGetterSetterMap() => {
      "updated": Tuple2(() => updated, (val) => updated = val),
      "lastUpdated": GenericModel.dateTime(
          () => lastUpdated, (value) => lastUpdated = value!),
      "collection": GenericModel.model(() => collectionModel,
          (value) => collectionModel = value, BookmarkCollectionModel.new),
    };