Parse from a json
factory UserStatusOffline.fromJson(Map<String, dynamic> json) => UserStatusOffline( wasOnline: json['was_online'], );