Coverts a given string into its corresponding OrderStatus object.
Coverts a given string into its corresponding OrderStatus object.
OrderStatus object corresponding to s.
Creates a codec for OrderStatus objects.
Decodes a given piece of JSON into an OrderStatus object.
Decodes a given piece of JSON into an OrderStatus object. If the given string does not match any of the three valid OrderStatuses, the system will fail.
Encodes a given OrderStatus into JSON.
Provides encode and decode methods for OrderStatus objects. If asked to decode a string other than "placed," "approved," or "delivered" the system will fail.