wrap_value static method

Object? wrap_value(
  1. dynamic value
)

Implementation

static Object? wrap_value(dynamic value) {
  if (value is List) {
    return wrap_values(value);
  } else if (value is Map<String, dynamic>) {
    return Obj(value);
  } else if (value is DateTime) {
    return Time(value.toUtc().toIso8601String());
  } else {
    return value;
  }
}