Map a value from the Data class to json.
Defaults to doing the same conversion as for Dart -> SQL, toSql.
@override S toJson(D value) => toSql(value);