Implement the functionality to define a Pet struct and its JSON unmarshaling logic in Go, ensuring that it meets specific criteria required by the provided test cases. The Pet struct must include the following fields:
ID (string): A valid ObjectId string.
UserID (string): The user identifier.
Name (string): The name of the pet.
Type (string): The type of the pet (e.g., Cat, Dog, Snake).
Breed (string): The breed of the pet.
DateOfBirth (string): The date of birth of the pet.
Image (string): A base64 representation of the pet's image.
The required functionality includes:
Implement the Pet struct with all specified fields.
Add a method for unmarshaling JSON data into the Pet struct that validates the ID field. If the ID is not a valid ObjectId format, return an error in the format: invalid ObjectId in JSON: "<invalid_id>". You can utilize the go.mongodb.org/mongo-driver/bson/primitive package for ID validation.
Ensure that the JSON unmarshaling correctly populates the struct fields as expected by the test cases.
Place your implementation in the /app/ directory with a file named pet.go.
Important: declare your solution in package models (the test file uses package models, so the implementation must use the matching package name).