fromDynamic static method

JsonSetDefaultValueBuilderModel fromDynamic(
  1. dynamic map, {
  2. Map<String, dynamic> args = const {},
  3. JsonWidgetRegistry? registry,
})

Implementation

static JsonSetDefaultValueBuilderModel fromDynamic(
  dynamic map, {
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
}) {
  final result = maybeFromDynamic(
    map,
    args: args,
    registry: registry,
  );

  if (result == null) {
    throw Exception(
      '[JsonSetDefaultValueBuilder]: requested to parse from dynamic, but the input is null.',
    );
  }

  return result;
}