cvAnyToJsonObjectOrNull function

Model? cvAnyToJsonObjectOrNull(
  1. Object? source
)

Decode any object

Implementation

Model? cvAnyToJsonObjectOrNull(Object? source) {
  if (source is Map) {
    return source.cast<String, Object?>();
  } else if (source is String) {
    return _parseJsonObjectOrNull(source)?.cast<String, Object?>();
  }
  return null;
}