EventRequest.fromJson constructor

EventRequest.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EventRequest.fromJson(Map<String, dynamic> json) {
  return EventRequest(
    json['name'] as String,
    (json['data'] as Map<String, dynamic>).cast<String, String>(),
    (json['multiData'] as Map<String, dynamic>).cast<String, List>(),
  );
}