fromMap static method
Gets a possible JsPromptResponse instance from a Map value.
Implementation
static JsPromptResponse? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = JsPromptResponse(
value: map['value'],
);
instance.action = JsPromptResponseAction.fromNativeValue(map['action']);
instance.cancelButtonTitle = map['cancelButtonTitle'];
instance.confirmButtonTitle = map['confirmButtonTitle'];
instance.defaultValue = map['defaultValue'];
instance.handledByClient = map['handledByClient'];
instance.message = map['message'];
return instance;
}