Converts an Object of type M to/from a database column of type T.
Object
M
T
Valid types for T include: String, JSON::Any, and Bytes.
String
JSON::Any
Bytes
NOTE: M must implement #to_json and .from_json methods.
#to_json
.from_json