fromDynamic static method
Builds the builder from a Map-like dynamic structure. This expects the JSON format to be of the following structure:
{
"onRequestError": <String? Function()>,
"onRequestValue": <dynamic Function()>,
"onSetValue": <ValueChanged<dynmaic>>,
"scrollableId": <String>
}
Implementation
static JsonTestableBuilder? fromDynamic(
dynamic map, {
JsonWidgetRegistry? registry,
}) {
JsonTestableBuilder? result;
if (map != null) {
result = JsonTestableBuilder(
onRequestError: map['onRequestError'],
onRequestValue: map['onRequestValue'],
onSetValue: map['onSetValue'],
scrollableId: map['scrollableId']?.toString(),
);
}
return result;
}