ApnsConfig.fromJson constructor

ApnsConfig.fromJson(
  1. Map _json
)

Implementation

ApnsConfig.fromJson(core.Map _json)
    : this(
        fcmOptions: _json.containsKey('fcmOptions')
            ? ApnsFcmOptions.fromJson(
                _json['fcmOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        headers: _json.containsKey('headers')
            ? (_json['headers'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        payload: _json.containsKey('payload')
            ? _json['payload'] as core.Map<core.String, core.dynamic>
            : null,
      );