code: @NonNull
      public static SharedPreferences.Editor putSerializable(@NonNull SharedPreferences.Editor editor,
              @NonNull String key, @Nullable Serializable obj) {
          editor.putString(key, serialize(obj));
          return editor;
      }
docs: Stores serializable object as BASE_64 encoded string.