fromDynamic static method

AssertLocationPermissionStep fromDynamic(
  1. dynamic map
)

Creates an instance from a JSON-like map structure. This expects the following format:

{
  "permission": <String>
}

Implementation

static AssertLocationPermissionStep fromDynamic(dynamic map) {
  AssertLocationPermissionStep result;

  if (map == null) {
    throw Exception(
      '[AssertLocationPermissionStep.fromDynamic]: map is null',
    );
  } else {
    result = AssertLocationPermissionStep(
      permission: map['permission']!.toString(),
    );
  }

  return result;
}