AirSecureEvent.fromMap constructor

AirSecureEvent.fromMap(
  1. Map<String, Object?> map
)

Implementation

AirSecureEvent.fromMap(Map<String, Object?> map)
  : kind = map['kind']! as String,
    receivedAt = DateTime.fromMillisecondsSinceEpoch(
      map['receivedAtMillis']! as int,
    ),
    eventIds = List.unmodifiable(
      (map['eventIds'] as List? ?? []).cast<int>(),
    ),
    eventNames = List.unmodifiable(
      (map['eventNames'] as List? ?? []).cast<String>(),
    ),
    receivedPosts = map['receivedPosts'] as int?,
    droppedPosts = map['droppedPosts'] as int?,
    durationSeconds = map['durationSeconds'] as int?,
    path = map['path'] as String?,
    method = map['method'] as String?,
    bodyLength = map['bodyLength'] as int?,
    observationMillis = map['observationMillis'] as int?,
    otherRequests = map['otherRequests'] as int?,
    droppedOtherRequests = map['droppedOtherRequests'] as int?,
    errorCode = map['errorCode'] as String?,
    eventResponseCode = map['eventResponseCode'] as String?;