decode static method

DV3DSceneDocument decode(
  1. String source
)

Implementation

static DV3DSceneDocument decode(String source) {
  final Object? json;
  try {
    json = jsonDecode(source);
  } on FormatException catch (error) {
    throw DV3DSceneFormatException(r'$', 'not JSON: ${error.message}');
  }
  return DV3DSceneDocument.fromJson(json);
}