fromMap static method

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

Gets a possible CallAsyncJavaScriptResult instance from a Map value.

Implementation

static CallAsyncJavaScriptResult? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = CallAsyncJavaScriptResult(
    error: map['error'],
    value: map['value'],
  );
  return instance;
}