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, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        payload: json_.containsKey('payload')
            ? json_['payload'] as core.Map<core.String, core.dynamic>
            : null,
      );