Converts the AppRoutePath object as a Json object.
Map<String, Object> toJson() => <String, Object>{ 'path': path ?? '', 'isUnknown': isUnknown, 'isHomePage': isHomePage, };