fromMap static method

AjaxRequestEvent? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible AjaxRequestEvent instance from a Map value.

Implementation

static AjaxRequestEvent? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = AjaxRequestEvent(
    lengthComputable: map['lengthComputable'],
    loaded: map['loaded'],
    total: map['total'],
    type: AjaxRequestEventType.fromNativeValue(map['type']),
  );
  return instance;
}