IntentFilter.fromJson constructor

IntentFilter.fromJson(
  1. Map _json
)

Implementation

IntentFilter.fromJson(core.Map _json)
    : this(
        actionNames: _json.containsKey('actionNames')
            ? (_json['actionNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        categoryNames: _json.containsKey('categoryNames')
            ? (_json['categoryNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mimeType: _json.containsKey('mimeType')
            ? _json['mimeType'] as core.String
            : null,
      );