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