fromDynamic static method
Creates an instance from a JSON-like map structure. This expects the following format:
{
"latitude": <double>,
"longitude": <double>
}
Implementation
static SetLocationStep fromDynamic(dynamic map) {
SetLocationStep result;
if (map == null) {
throw Exception('[SetLocationStep.fromDynamic]: map is null');
} else {
result = SetLocationStep(
latitude: map['latitude']!.toString(),
longitude: map['longitude']!.toString(),
);
}
return result;
}