RequestDetails.fromMap constructor

RequestDetails.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory RequestDetails.fromMap(Map<String, dynamic> map) {
  return RequestDetails(
    requestName: map['requestName'] != null ? map['requestName'] : null,
    requestMethod: map['requestMethod'],
    url: map['url'],
    statusCode: map['statusCode'] != null ? map['statusCode'] : null,
    headers: map['headers'],
    requestBody: map['requestBody'],
    responseBody: map['responseBody'],
    sentTime: DateTime.fromMillisecondsSinceEpoch(map['sentTime']),
  );
}