jsonEncodable static method

Object? jsonEncodable(
  1. Object? item
)

Implementation

static Object? jsonEncodable(Object? item) {
  if (item is IcsDateTime) {
    return item.toJson();
  } else if (item is IcsTransp) {
    return item.key;
  } else if (item is IcsStatus) {
    return item.key;
  }
  return item;
}