Post constructor

Post({
  1. String? key,
  2. String? formKey,
  3. int? status,
  4. String? title,
  5. int? date,
  6. int? attempts,
  7. String? method,
  8. Map<String, String>? headers,
  9. String? format,
  10. String? url,
  11. String? body,
  12. String? info,
})

Implementation

Post({
  String? key,
  String? formKey,
  int?    status,
  String? title,
  int?    date,
  int?    attempts,
  String? method,
  Map<String, String>? headers,
  String? format,
  String? url,
  String? body,
  String? info})
{
  _map["key"]      = key ?? S.newId();
  _map["formKey"]  = formKey;
  _map["status"]   = status;
  _map["title"]    = title;
  _map["date"]     = date;
  _map["attempts"] = attempts;
  _map["method"]   = method;
  _map["format"]   = format;
  _map["url"]      = url;
  _map["body"]     = body;
  _map["info"]     = info;
  _map["headers"]  = headers;
}