EventTrackingResponse.fromJson constructor

EventTrackingResponse.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory EventTrackingResponse.fromJson(Map<String, dynamic> data) {
  final status = data['status'] as int; // cast as non-nullable int
  final cookie = data['cookie'] as String; // cast as non-nullable String
  return EventTrackingResponse(status: status, cookie: cookie);
}