ClientCookie.fromMap constructor
Receives directives as Map
Implementation
factory ClientCookie.fromMap(
String name, String value, DateTime createdAt, Map map) {
return ClientCookie(
name,
value,
createdAt,
domain: map['Domain'],
expires: map['Expires'],
httpOnly: map['HttpOnly'] ?? false,
maxAge: map['Max-Age'],
secure: map['Secure'] ?? false,
path: map['Path'],
);
}