CompileScriptResult.fromJson constructor

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

Implementation

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