serialize function

String serialize(
  1. dynamic value
)

Serializes any arbitrary Dart datum to JSON. Supports schema validation.

Implementation

String serialize(value) {
  var serialized = serializeObject(value);
  logger.info('Serialization result: $serialized');
  return jsonEncode(serialized);
}