Header.fromJson constructor
Header.fromJson(
- Map _json
Implementation
Header.fromJson(core.Map _json)
: this(
glob: _json.containsKey('glob') ? _json['glob'] as core.String : 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,
regex:
_json.containsKey('regex') ? _json['regex'] as core.String : null,
);