AuditRecords.fromJson constructor

AuditRecords.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AuditRecords.fromJson(Map<String, Object?> json) {
  return AuditRecords(
    limit: (json[r'limit'] as num?)?.toInt(),
    offset: (json[r'offset'] as num?)?.toInt(),
    records: (json[r'records'] as List<Object?>?)
            ?.map((i) => AuditRecordBean.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    total: (json[r'total'] as num?)?.toInt(),
  );
}