SetScriptSourceResult.fromJson constructor

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

Implementation

factory SetScriptSourceResult.fromJson(Map<String, dynamic> json) {
  return SetScriptSourceResult(
    status: SetScriptSourceResultStatus.fromJson(json['status'] as String),
    exceptionDetails: json.containsKey('exceptionDetails')
        ? runtime.ExceptionDetails.fromJson(
            json['exceptionDetails'] as Map<String, dynamic>)
        : null,
  );
}