EventRequest.fromJson constructor

EventRequest.fromJson(
  1. Object? json
)

Implementation

factory EventRequest.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return EventRequest(
    id: map['id'] == null ? null : (map['id'] as String),
    idempotencyKey: map['idempotency_key'] == null
        ? null
        : (map['idempotency_key'] as String),
  );
}