factory Resources({bool? listChanged, bool? subscribe}) => Resources.fromMap({ if (listChanged != null) Keys.listChanged: listChanged, if (subscribe != null) Keys.subscribe: subscribe, });