HttpRouteHeaderModifier.fromJson constructor

HttpRouteHeaderModifier.fromJson(
  1. Map json_
)

Implementation

HttpRouteHeaderModifier.fromJson(core.Map json_)
    : this(
        add: json_.containsKey('add')
            ? (json_['add'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        remove: json_.containsKey('remove')
            ? (json_['remove'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        set: json_.containsKey('set')
            ? (json_['set'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );