ProfileChange.fromJson(Map<String, dynamic> json) : this(json['userId'], _parseAvailability(json['mode']));