listLog method

Future<LogListDto?> listLog(
  1. DateTime? date,
  2. int? from,
  3. int? to,
  4. String? apiId,
  5. int? statusCd,
  6. bool? exception,
  7. PagingImpl? pagingImpl,
)

Implementation

Future<LogListDto?> listLog (
  DateTime? date,
  int? from,
  int? to,
  String? apiId,
  int? statusCd,
  bool? exception,
  PagingImpl? pagingImpl
) async {
  String path = "/log-list/$date";
  Map<String, dynamic> parameters = {};
  parameters['from'] = from;
  parameters['to'] = to;
  parameters['apiId'] = apiId;
  parameters['statusCd'] = statusCd;
  parameters['exception'] = exception;
  parameters['limit'] = pagingImpl?.limit;
  parameters['offset'] = pagingImpl?.offset;
  return LogListDto.fromJson(
    await get(path, parameters: parameters, requireAuthorization:true) ?? {}
  );
}