json-mapper
json-mapper copied to clipboard
Maps JSON data to strongly typed PHP DTOs
That class is declared as: ``` namespace Google\Service\MyBusinessBusinessInformation; class Location extends \Google\Collection { protected $collection_key = 'serviceItems'; protected $adWordsLocationExtensionsType = AdWordsLocationExtensions::class; protected $adWordsLocationExtensionsDataType = ''; protected $categoriesType = Categories::class; protected...
Please consider using PHPStan. If I write _It is a superior tool_ here, there could be flamewars 🔥
Looks very good. - Name - Badges - Tag line as in almost every repo here on GitHub. 
Exceptions such as "Unexpected property %s in JSON data" should display the full path to the property in the JSON document, for easier debugging.
Class "Brick\Reflection\ImportResolver" not found row 289 of Reflection/Reflector.php file ```php private function convertNamedType(string $namedType, bool $isReflection, ReflectionParameter $reflectionParameter): SimpleType|ClassType|EnumType { $namedTypeLower = strtolower($namedType); $isAllowedBuiltinType = in_array($namedTypeLower, self::ALLOWED_BUILTIN_TYPES, true); $isDisallowedBuiltinType =...
It is sometimes useful to have option map StdClass object directly, because it is very often returned from other API clients implementations. It make no sense to encode response from...
What's the best way to map a nested json object? Imagine this response shown here: https://stytch.com/docs/b2b/api/create-organization Inside that Json object is an Organisation, which is the only thing I need...