$MethodSelector.fromJson constructor Null safety

$MethodSelector.fromJson(
  1. Map _json
)

Implementation

$MethodSelector.fromJson(core.Map _json)
    : this(
        method: _json.containsKey('method')
            ? _json['method'] as core.String
            : null,
        permission: _json.containsKey('permission')
            ? _json['permission'] as core.String
            : null,
      );