AwaitPromiseResult.fromJson constructor

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

Implementation

factory AwaitPromiseResult.fromJson(Map<String, dynamic> json) {
  return AwaitPromiseResult(
    result: RemoteObject.fromJson(json['result'] as Map<String, dynamic>),
    exceptionDetails: json.containsKey('exceptionDetails')
        ? ExceptionDetails.fromJson(
            json['exceptionDetails'] as Map<String, dynamic>)
        : null,
  );
}