Provider.fromJson constructor

Provider.fromJson(
  1. Map json_
)

Implementation

Provider.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        eventTypes: json_.containsKey('eventTypes')
            ? (json_['eventTypes'] as core.List)
                .map((value) => EventType.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );