SuccessResponseEvent.fromJson constructor

SuccessResponseEvent.fromJson(
  1. dynamic eventData
)

Implementation

factory SuccessResponseEvent.fromJson(dynamic eventData) {
  return SuccessResponseEvent(
    type: eventData['type'] != null
        ? eventData['type'].toString().toSuccessResponseState()
        : SuccessResponseState.none,
    from: eventData['from'] ?? '',
  );
}