specToJson function

Object? specToJson(
  1. Object? obj
)

Implementation

Object? specToJson(Object? obj) {
  if (obj is ToJsonable) {
    return obj.toJson();
  } else {
    return obj;
  }
}